Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
β’
4faf3df
1
Parent(s):
6506ca6
Update app.py
Browse files
app.py
CHANGED
@@ -420,7 +420,7 @@ with block as demo:
|
|
420 |
)
|
421 |
with gr.Group():
|
422 |
with gr.Tab("From YouTube πΉ"):
|
423 |
-
|
424 |
|
425 |
with gr.Row().style(equal_height=True):
|
426 |
size = gr.Dropdown(
|
@@ -461,12 +461,9 @@ with block as demo:
|
|
461 |
with gr.Row().style(equal_height=True):
|
462 |
clear = gr.ClearButton(
|
463 |
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
464 |
-
# scale=1,
|
465 |
value="Clear ποΈ"
|
466 |
)
|
467 |
-
btn = gr.Button("Get Video Insights π", variant="primary"
|
468 |
-
# scale=1
|
469 |
-
)
|
470 |
btn.click(
|
471 |
gio,
|
472 |
inputs=[link, lang, size],
|
@@ -475,7 +472,7 @@ with block as demo:
|
|
475 |
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
476 |
|
477 |
with gr.Tab("From Audio file ποΈ"):
|
478 |
-
|
479 |
|
480 |
with gr.Row().style(equal_height=True):
|
481 |
size = gr.Dropdown(
|
@@ -504,9 +501,9 @@ with block as demo:
|
|
504 |
wordcloud_image = gr.Image(label="WordCloud")
|
505 |
|
506 |
with gr.Row().style(equal_height=True):
|
507 |
-
clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image],
|
508 |
btn = gr.Button(
|
509 |
-
"Get Audio Insights π", variant="primary"
|
510 |
)
|
511 |
btn.click(
|
512 |
gio.from_audio_input,
|
@@ -515,7 +512,7 @@ with block as demo:
|
|
515 |
)
|
516 |
|
517 |
with gr.Tab("From Article π"):
|
518 |
-
|
519 |
|
520 |
with gr.Row().style(equal_height=True):
|
521 |
article = gr.Textbox(
|
@@ -535,10 +532,10 @@ with block as demo:
|
|
535 |
wordcloud_image = gr.Image(label="WordCloud")
|
536 |
|
537 |
with gr.Row().style(equal_height=True):
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
btn.click(
|
543 |
gio.from_article,
|
544 |
inputs=[article],
|
|
|
420 |
)
|
421 |
with gr.Group():
|
422 |
with gr.Tab("From YouTube πΉ"):
|
423 |
+
with gr.Box():
|
424 |
|
425 |
with gr.Row().style(equal_height=True):
|
426 |
size = gr.Dropdown(
|
|
|
461 |
with gr.Row().style(equal_height=True):
|
462 |
clear = gr.ClearButton(
|
463 |
[link, title, img, text, summary, keywords, label, wordcloud_image],
|
|
|
464 |
value="Clear ποΈ"
|
465 |
)
|
466 |
+
btn = gr.Button("Get Video Insights π", variant="primary")
|
|
|
|
|
467 |
btn.click(
|
468 |
gio,
|
469 |
inputs=[link, lang, size],
|
|
|
472 |
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
473 |
|
474 |
with gr.Tab("From Audio file ποΈ"):
|
475 |
+
with gr.Box():
|
476 |
|
477 |
with gr.Row().style(equal_height=True):
|
478 |
size = gr.Dropdown(
|
|
|
501 |
wordcloud_image = gr.Image(label="WordCloud")
|
502 |
|
503 |
with gr.Row().style(equal_height=True):
|
504 |
+
clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], value="Clear ποΈ")
|
505 |
btn = gr.Button(
|
506 |
+
"Get Audio Insights π", variant="primary"
|
507 |
)
|
508 |
btn.click(
|
509 |
gio.from_audio_input,
|
|
|
512 |
)
|
513 |
|
514 |
with gr.Tab("From Article π"):
|
515 |
+
with gr.Box():
|
516 |
|
517 |
with gr.Row().style(equal_height=True):
|
518 |
article = gr.Textbox(
|
|
|
532 |
wordcloud_image = gr.Image(label="WordCloud")
|
533 |
|
534 |
with gr.Row().style(equal_height=True):
|
535 |
+
with gr.Box():
|
536 |
+
clear = gr.ClearButton([article, summary, keywords, label, wordcloud_image], value="Clear ποΈ")
|
537 |
+
btn = gr.Button(
|
538 |
+
"Get Text insights π", variant="primary")
|
539 |
btn.click(
|
540 |
gio.from_article,
|
541 |
inputs=[article],
|