Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
Β·
3be0656
1
Parent(s):
dadf984
Update app.py
Browse files
app.py
CHANGED
@@ -442,23 +442,33 @@ with block as demo:
|
|
442 |
label="Transcription",
|
443 |
placeholder="Transcription Output...",
|
444 |
lines=10,
|
445 |
-
).style(show_copy_button=True,
|
|
|
|
|
446 |
|
447 |
with gr.Row().style(equal_height=True):
|
448 |
summary = gr.Textbox(
|
449 |
label="Summary", placeholder="Summary Output...", lines=5
|
450 |
-
).style(show_copy_button=True,
|
|
|
|
|
451 |
keywords = gr.Textbox(
|
452 |
label="Keywords", placeholder="Keywords Output...", lines=5
|
453 |
-
).style(show_copy_button=True,
|
|
|
|
|
454 |
label = gr.Label(label="Sentiment Analysis")
|
455 |
wordcloud_image = gr.Image(label="WordCloud")
|
456 |
|
457 |
with gr.Row().style(equal_height=True):
|
458 |
clear = gr.ClearButton(
|
459 |
-
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
|
|
|
|
460 |
)
|
461 |
-
btn = gr.Button("Get
|
|
|
|
|
462 |
btn.click(
|
463 |
gio,
|
464 |
inputs=[link, lang, size],
|
@@ -487,10 +497,10 @@ with block as demo:
|
|
487 |
|
488 |
with gr.Row().style(equal_height=True):
|
489 |
summary = gr.Textbox(
|
490 |
-
label="Summary", placeholder="Summary Output", lines=5
|
491 |
)
|
492 |
keywords = gr.Textbox(
|
493 |
-
label="Keywords", placeholder="Keywords Output", lines=5
|
494 |
)
|
495 |
label = gr.Label(label="Sentiment Analysis")
|
496 |
wordcloud_image = gr.Image(label="WordCloud")
|
@@ -498,7 +508,7 @@ with block as demo:
|
|
498 |
with gr.Row().style(equal_height=True):
|
499 |
clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], scale=1, value="Clear ποΈ")
|
500 |
btn = gr.Button(
|
501 |
-
"Get
|
502 |
)
|
503 |
btn.click(
|
504 |
gio.from_audio_input,
|
@@ -518,10 +528,10 @@ with block as demo:
|
|
518 |
|
519 |
with gr.Row().style(equal_height=True):
|
520 |
summary = gr.Textbox(
|
521 |
-
label="Summary", placeholder="Summary Output", lines=5
|
522 |
)
|
523 |
keywords = gr.Textbox(
|
524 |
-
label="Keywords", placeholder="Keywords Output", lines=5
|
525 |
)
|
526 |
label = gr.Label(label="Sentiment Analysis")
|
527 |
wordcloud_image = gr.Image(label="WordCloud")
|
@@ -529,7 +539,7 @@ with block as demo:
|
|
529 |
with gr.Row().style(equal_height=True):
|
530 |
clear = gr.ClearButton([article, summary, keywords, label, wordcloud_image], scale=1, value="Clear ποΈ")
|
531 |
btn = gr.Button(
|
532 |
-
"Get
|
533 |
)
|
534 |
btn.click(
|
535 |
gio.from_article,
|
|
|
442 |
label="Transcription",
|
443 |
placeholder="Transcription Output...",
|
444 |
lines=10,
|
445 |
+
).style(show_copy_button=True,
|
446 |
+
# container=True
|
447 |
+
)
|
448 |
|
449 |
with gr.Row().style(equal_height=True):
|
450 |
summary = gr.Textbox(
|
451 |
label="Summary", placeholder="Summary Output...", lines=5
|
452 |
+
).style(show_copy_button=True,
|
453 |
+
# container=True
|
454 |
+
)
|
455 |
keywords = gr.Textbox(
|
456 |
label="Keywords", placeholder="Keywords Output...", lines=5
|
457 |
+
).style(show_copy_button=True,
|
458 |
+
# container=True
|
459 |
+
)
|
460 |
label = gr.Label(label="Sentiment Analysis")
|
461 |
wordcloud_image = gr.Image(label="WordCloud")
|
462 |
|
463 |
with gr.Row().style(equal_height=True):
|
464 |
clear = gr.ClearButton(
|
465 |
+
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
466 |
+
# scale=1,
|
467 |
+
value="Clear ποΈ"
|
468 |
)
|
469 |
+
btn = gr.Button("Get Video Insights π", variant="primary",
|
470 |
+
# scale=1
|
471 |
+
)
|
472 |
btn.click(
|
473 |
gio,
|
474 |
inputs=[link, lang, size],
|
|
|
497 |
|
498 |
with gr.Row().style(equal_height=True):
|
499 |
summary = gr.Textbox(
|
500 |
+
label="Summary", placeholder="Summary Output...", lines=5
|
501 |
)
|
502 |
keywords = gr.Textbox(
|
503 |
+
label="Keywords", placeholder="Keywords Output...", lines=5
|
504 |
)
|
505 |
label = gr.Label(label="Sentiment Analysis")
|
506 |
wordcloud_image = gr.Image(label="WordCloud")
|
|
|
508 |
with gr.Row().style(equal_height=True):
|
509 |
clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], scale=1, value="Clear ποΈ")
|
510 |
btn = gr.Button(
|
511 |
+
"Get Audio Insights π", variant="primary", scale=1
|
512 |
)
|
513 |
btn.click(
|
514 |
gio.from_audio_input,
|
|
|
528 |
|
529 |
with gr.Row().style(equal_height=True):
|
530 |
summary = gr.Textbox(
|
531 |
+
label="Summary", placeholder="Summary Output...", lines=5
|
532 |
)
|
533 |
keywords = gr.Textbox(
|
534 |
+
label="Keywords", placeholder="Keywords Output...", lines=5
|
535 |
)
|
536 |
label = gr.Label(label="Sentiment Analysis")
|
537 |
wordcloud_image = gr.Image(label="WordCloud")
|
|
|
539 |
with gr.Row().style(equal_height=True):
|
540 |
clear = gr.ClearButton([article, summary, keywords, label, wordcloud_image], scale=1, value="Clear ποΈ")
|
541 |
btn = gr.Button(
|
542 |
+
"Get Text insights π", variant="primary", scale=1
|
543 |
)
|
544 |
btn.click(
|
545 |
gio.from_article,
|