Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
69a21ba
1
Parent(s):
5463224
Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,7 @@ class GradioInference:
|
|
255 |
|
256 |
|
257 |
gio = GradioInference()
|
258 |
-
title = "
|
259 |
description = "Your AI-powered video analytics tool"
|
260 |
|
261 |
block = gr.Blocks()
|
@@ -264,11 +264,11 @@ with block as demo:
|
|
264 |
"""
|
265 |
<div style="text-align: center; max-width: 500px; margin: 0 auto;">
|
266 |
<div>
|
267 |
-
<h1>
|
268 |
</div>
|
269 |
-
<
|
270 |
Your AI-powered video analytics tool
|
271 |
-
</
|
272 |
</div>
|
273 |
"""
|
274 |
)
|
@@ -312,7 +312,7 @@ with block as demo:
|
|
312 |
inputs=[link, lang, size],
|
313 |
outputs=[text, summary, keywords, label, wordcloud_image],
|
314 |
)
|
315 |
-
|
316 |
|
317 |
with gr.Tab("From Audio file"):
|
318 |
with gr.Box():
|
@@ -355,7 +355,7 @@ with block:
|
|
355 |
gr.Markdown("### Video Examples")
|
356 |
gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I","https://www.youtube.com/shorts/VrSJhTGMM90"], inputs=link)
|
357 |
|
358 |
-
gr.Markdown("About the app:")
|
359 |
|
360 |
with gr.Accordion("What is YouTube Insights?", open=False):
|
361 |
gr.Markdown(
|
|
|
255 |
|
256 |
|
257 |
gio = GradioInference()
|
258 |
+
title = "YouTube Insights"
|
259 |
description = "Your AI-powered video analytics tool"
|
260 |
|
261 |
block = gr.Blocks()
|
|
|
264 |
"""
|
265 |
<div style="text-align: center; max-width: 500px; margin: 0 auto;">
|
266 |
<div>
|
267 |
+
<h1>YouTube <span style="color: red;">Insights</span> 📹</h1>
|
268 |
</div>
|
269 |
+
<h4 style="margin-bottom: 10px; font-size: 94%">
|
270 |
Your AI-powered video analytics tool
|
271 |
+
</h4>
|
272 |
</div>
|
273 |
"""
|
274 |
)
|
|
|
312 |
inputs=[link, lang, size],
|
313 |
outputs=[text, summary, keywords, label, wordcloud_image],
|
314 |
)
|
315 |
+
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
316 |
|
317 |
with gr.Tab("From Audio file"):
|
318 |
with gr.Box():
|
|
|
355 |
gr.Markdown("### Video Examples")
|
356 |
gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I","https://www.youtube.com/shorts/VrSJhTGMM90"], inputs=link)
|
357 |
|
358 |
+
gr.Markdown("### About the app:")
|
359 |
|
360 |
with gr.Accordion("What is YouTube Insights?", open=False):
|
361 |
gr.Markdown(
|