Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
β’
8cc73eb
1
Parent(s):
ae4aeee
Update app.py
Browse files
app.py
CHANGED
@@ -410,7 +410,7 @@ with block as demo:
|
|
410 |
"""
|
411 |
<div style="text-align: center; max-width: 500px; margin: 0 auto;">
|
412 |
<div>
|
413 |
-
<h1 style="font-family:
|
414 |
</div>
|
415 |
<h4 style="margin-bottom: 5px; font-size: 95%">
|
416 |
Your AI-powered video analytics tool β¨
|
@@ -460,18 +460,18 @@ with block as demo:
|
|
460 |
wordcloud_image = gr.Image(label="WordCloud")
|
461 |
|
462 |
# with gr.Row():
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
|
476 |
with gr.Tab("From Audio file ποΈ"):
|
477 |
with gr.Box():
|
|
|
410 |
"""
|
411 |
<div style="text-align: center; max-width: 500px; margin: 0 auto;">
|
412 |
<div>
|
413 |
+
<h1 style="font-family: Montserrat, sans-serif;">MEDIA <span style="color: #433ccb;">INSIGHTS</span> π‘</h1>
|
414 |
</div>
|
415 |
<h4 style="margin-bottom: 5px; font-size: 95%">
|
416 |
Your AI-powered video analytics tool β¨
|
|
|
460 |
wordcloud_image = gr.Image(label="WordCloud")
|
461 |
|
462 |
# with gr.Row():
|
463 |
+
btn = gr.Button("Get Video Insights π", label="Primary Button", variant="primary")
|
464 |
+
clear = gr.ClearButton(
|
465 |
+
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
466 |
+
label="Secondary Button",
|
467 |
+
value="Clear ποΈ"
|
468 |
+
)
|
469 |
+
btn.click(
|
470 |
+
gio,
|
471 |
+
inputs=[link, lang, size],
|
472 |
+
outputs=[text, summary, keywords, label, wordcloud_image],
|
473 |
+
)
|
474 |
+
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
475 |
|
476 |
with gr.Tab("From Audio file ποΈ"):
|
477 |
with gr.Box():
|