SteveDigital
commited on
Commit
·
713e0a1
1
Parent(s):
24c1d50
Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,10 @@ with gr.Blocks() as demo:
|
|
36 |
result_button_transcribe = gr.Button('1. Transcribe')
|
37 |
output_text_transcribe = gr.Textbox(placeholder='Transcript of the YouTube video.', label='Transcript')
|
38 |
|
39 |
-
|
40 |
output_text_summary = gr.Textbox(placeholder='Summary of the YouTube video transcript.', label='Summary')
|
41 |
|
42 |
-
|
43 |
-
|
44 |
|
45 |
demo.launch(debug = True)
|
|
|
36 |
result_button_transcribe = gr.Button('1. Transcribe')
|
37 |
output_text_transcribe = gr.Textbox(placeholder='Transcript of the YouTube video.', label='Transcript')
|
38 |
|
39 |
+
result_button_summary = gr.Button('2. Create Summary')
|
40 |
output_text_summary = gr.Textbox(placeholder='Summary of the YouTube video transcript.', label='Summary')
|
41 |
|
42 |
+
result_button_transcribe.click(get_text, inputs = input_text_url, outputs = output_text_transcribe)
|
43 |
+
result_button_summary.click(get_summary, inputs = output_text_transcribe, outputs = output_text_summary)
|
44 |
|
45 |
demo.launch(debug = True)
|