Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
β’
034b845
1
Parent(s):
c1b89d5
Update app.py
Browse files
app.py
CHANGED
@@ -412,7 +412,7 @@ with block as demo:
|
|
412 |
<div>
|
413 |
<h1 style="font-family: poppins, sans-serif;">MED.IA <span style="color: #433ccb;">INSIGHTS</span> π‘</h1>
|
414 |
</div>
|
415 |
-
<h4 style="margin-bottom:
|
416 |
Your AI-powered video analytics tool β¨
|
417 |
</h4>
|
418 |
</div>
|
@@ -442,7 +442,7 @@ with block as demo:
|
|
442 |
text = gr.Textbox(
|
443 |
label="Transcription",
|
444 |
placeholder="Transcription Output...",
|
445 |
-
lines=
|
446 |
).style(show_copy_button=True)
|
447 |
|
448 |
with gr.Row().style(equal_height=True):
|
@@ -459,12 +459,12 @@ with block as demo:
|
|
459 |
label = gr.Label(label="Sentiment Analysis")
|
460 |
wordcloud_image = gr.Image(label="WordCloud")
|
461 |
|
462 |
-
with gr.Row()
|
|
|
463 |
clear = gr.ClearButton(
|
464 |
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
465 |
value="Clear ποΈ"
|
466 |
)
|
467 |
-
btn = gr.Button("Get Video Insights π", variant="primary")
|
468 |
btn.click(
|
469 |
gio,
|
470 |
inputs=[link, lang, size],
|
@@ -501,11 +501,11 @@ with block as demo:
|
|
501 |
label = gr.Label(label="Sentiment Analysis")
|
502 |
wordcloud_image = gr.Image(label="WordCloud")
|
503 |
|
504 |
-
with gr.Row()
|
505 |
-
clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], value="Clear ποΈ")
|
506 |
btn = gr.Button(
|
507 |
"Get Audio Insights π", variant="primary"
|
508 |
)
|
|
|
509 |
btn.click(
|
510 |
gio.from_audio_input,
|
511 |
inputs=[lang, size, audio_file],
|
@@ -532,12 +532,10 @@ with block as demo:
|
|
532 |
label = gr.Label(label="Sentiment Analysis")
|
533 |
wordcloud_image = gr.Image(label="WordCloud")
|
534 |
|
535 |
-
with gr.Row()
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
btn = gr.Button(
|
540 |
-
"Get Text insights π", variant="primary")
|
541 |
btn.click(
|
542 |
gio.from_article,
|
543 |
inputs=[article],
|
@@ -599,10 +597,12 @@ with block:
|
|
599 |
<p style="margin-bottom: 10px; font-size: 90%">
|
600 |
2023 Master in Big Data & Data Science - Universidad Complutense de Madrid
|
601 |
</p>
|
602 |
-
<img src="https://github.com/Tochers/UCM-Projects/blob/main/TFM/images/banner_notebook.png" alt="footer" style="max-width: 100%; height: auto;">
|
603 |
</div>
|
604 |
"""
|
605 |
)
|
606 |
|
|
|
|
|
|
|
607 |
demo.launch()
|
608 |
|
|
|
412 |
<div>
|
413 |
<h1 style="font-family: poppins, sans-serif;">MED.IA <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 β¨
|
417 |
</h4>
|
418 |
</div>
|
|
|
442 |
text = gr.Textbox(
|
443 |
label="Transcription",
|
444 |
placeholder="Transcription Output...",
|
445 |
+
lines=18,
|
446 |
).style(show_copy_button=True)
|
447 |
|
448 |
with gr.Row().style(equal_height=True):
|
|
|
459 |
label = gr.Label(label="Sentiment Analysis")
|
460 |
wordcloud_image = gr.Image(label="WordCloud")
|
461 |
|
462 |
+
with gr.Row():
|
463 |
+
btn = gr.Button("Get Video Insights π", variant="primary")
|
464 |
clear = gr.ClearButton(
|
465 |
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
466 |
value="Clear ποΈ"
|
467 |
)
|
|
|
468 |
btn.click(
|
469 |
gio,
|
470 |
inputs=[link, lang, size],
|
|
|
501 |
label = gr.Label(label="Sentiment Analysis")
|
502 |
wordcloud_image = gr.Image(label="WordCloud")
|
503 |
|
504 |
+
with gr.Row():
|
|
|
505 |
btn = gr.Button(
|
506 |
"Get Audio Insights π", variant="primary"
|
507 |
)
|
508 |
+
clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], value="Clear ποΈ")
|
509 |
btn.click(
|
510 |
gio.from_audio_input,
|
511 |
inputs=[lang, size, audio_file],
|
|
|
532 |
label = gr.Label(label="Sentiment Analysis")
|
533 |
wordcloud_image = gr.Image(label="WordCloud")
|
534 |
|
535 |
+
with gr.Row():
|
536 |
+
btn = gr.Button(
|
537 |
+
"Get Text insights π", variant="primary")
|
538 |
+
clear = gr.ClearButton([article, summary, keywords, label, wordcloud_image], value="Clear)
|
|
|
|
|
539 |
btn.click(
|
540 |
gio.from_article,
|
541 |
inputs=[article],
|
|
|
597 |
<p style="margin-bottom: 10px; font-size: 90%">
|
598 |
2023 Master in Big Data & Data Science - Universidad Complutense de Madrid
|
599 |
</p>
|
|
|
600 |
</div>
|
601 |
"""
|
602 |
)
|
603 |
|
604 |
+
gr.Image("https://github.com/Tochers/UCM-Projects/blob/main/TFM/images/banner_notebook.png")
|
605 |
+
|
606 |
+
|
607 |
demo.launch()
|
608 |
|