Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
•
cd62134
1
Parent(s):
d8da1f1
Update app.py
Browse files
app.py
CHANGED
@@ -459,19 +459,18 @@ with block as demo:
|
|
459 |
label = gr.Label(label="Sentiment Analysis")
|
460 |
wordcloud_image = gr.Image(label="WordCloud")
|
461 |
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
475 |
|
476 |
with gr.Tab("From Audio file 🎙️"):
|
477 |
with gr.Box():
|
|
|
459 |
label = gr.Label(label="Sentiment Analysis")
|
460 |
wordcloud_image = gr.Image(label="WordCloud")
|
461 |
|
462 |
+
btn = gr.Button("Get Video Insights 🔎", label="Primary Button", variant="primary")
|
463 |
+
clear = gr.ClearButton(
|
464 |
+
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
465 |
+
label="Secondary Button",
|
466 |
+
value="Clear 🗑️"
|
467 |
+
)
|
468 |
+
btn.click(
|
469 |
+
gio,
|
470 |
+
inputs=[link, lang, size],
|
471 |
+
outputs=[text, summary, keywords, label, wordcloud_image],
|
472 |
+
)
|
473 |
+
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
|
|
474 |
|
475 |
with gr.Tab("From Audio file 🎙️"):
|
476 |
with gr.Box():
|