Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
3a0b0c9
1
Parent(s):
6518c39
Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ with block as demo:
|
|
82 |
with gr.Row().style(equal_height=True):
|
83 |
size = gr.Dropdown(label="Model Size", choices=gio.sizes, value='base')
|
84 |
lang = gr.Dropdown(label="Language (Optional)", choices=gio.langs, value="none")
|
85 |
-
|
86 |
-
|
87 |
with gr.Row().style(equal_height=True):
|
88 |
img = gr.Image(label="Thumbnail")
|
89 |
text = gr.Textbox(label="Transcription", placeholder="Transcription Output", lines=10).style(show_copy_button=True, container=True)
|
@@ -115,13 +115,14 @@ with block as demo:
|
|
115 |
btn.click(transcribe_audio, inputs=[audio_file], outputs=[text])
|
116 |
# link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
125 |
|
126 |
|
127 |
|
|
|
82 |
with gr.Row().style(equal_height=True):
|
83 |
size = gr.Dropdown(label="Model Size", choices=gio.sizes, value='base')
|
84 |
lang = gr.Dropdown(label="Language (Optional)", choices=gio.langs, value="none")
|
85 |
+
link = gr.Textbox(label="YouTube Link")
|
86 |
+
title = gr.Label(label="Video Title")
|
87 |
with gr.Row().style(equal_height=True):
|
88 |
img = gr.Image(label="Thumbnail")
|
89 |
text = gr.Textbox(label="Transcription", placeholder="Transcription Output", lines=10).style(show_copy_button=True, container=True)
|
|
|
115 |
btn.click(transcribe_audio, inputs=[audio_file], outputs=[text])
|
116 |
# link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
117 |
|
118 |
+
with block:
|
119 |
+
gr.Markdown("About the app:")
|
120 |
+
|
121 |
+
with gr.Accordion("What is YouTube Insights?"):
|
122 |
+
gr.Markdown("YouTube Insights is a tool developed with academic purposes only, that creates summaries, keywords and sentiments analysis based on YouTube videos or user audio files.")
|
123 |
+
|
124 |
+
with gr.Accordion("How does it work?"):
|
125 |
+
gr.Markdown("Works by using OpenAI's Whisper, DistilBART for summarization and VoiceLabT5 for Keyword Extraction.")
|
126 |
|
127 |
|
128 |
|