Spaces:
Runtime error
Runtime error
Commit
·
2e2b1f1
1
Parent(s):
cabfd73
Update app.py
Browse files
app.py
CHANGED
@@ -420,44 +420,44 @@ with block as demo:
|
|
420 |
)
|
421 |
with gr.Group():
|
422 |
with gr.Tab("From YouTube 📹"):
|
423 |
-
with gr.Box():
|
424 |
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
)
|
432 |
-
link = gr.Textbox(
|
433 |
-
label="YouTube Link", placeholder="Enter YouTube link..."
|
434 |
)
|
|
|
|
|
|
|
435 |
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
with gr.Column(variant="panel", scale=1):
|
442 |
-
text = gr.Textbox(
|
443 |
-
label="Transcription",
|
444 |
-
placeholder="Transcription Output...",
|
445 |
-
lines=18,
|
446 |
-
).style(show_copy_button=True)
|
447 |
|
448 |
-
with gr.
|
449 |
-
|
450 |
-
label="
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
|
462 |
with gr.Row():
|
463 |
btn = gr.Button("Get Video Insights 🔎", variant="primary", scale=1)
|
|
|
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(
|
427 |
+
label="Speech-to-text Model Size", choices=gio.sizes, value="base"
|
428 |
+
)
|
429 |
+
lang = gr.Dropdown(
|
430 |
+
label="Language (Optional)", choices=gio.langs, value="none"
|
|
|
|
|
|
|
431 |
)
|
432 |
+
link = gr.Textbox(
|
433 |
+
label="YouTube Link", placeholder="Enter YouTube link..."
|
434 |
+
)
|
435 |
|
436 |
+
with gr.Row().style(equal_height=True):
|
437 |
+
with gr.Column(variant="panel", scale=1):
|
438 |
+
title = gr.Label(label="Video Title")
|
439 |
+
img = gr.Image(label="Thumbnail").style(height=350)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
|
441 |
+
with gr.Column(variant="panel", scale=1):
|
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):
|
449 |
+
summary = gr.Textbox(
|
450 |
+
label="Summary", placeholder="Summary Output...", lines=5
|
451 |
+
).style(show_copy_button=True,
|
452 |
+
# container=True
|
453 |
+
)
|
454 |
+
keywords = gr.Textbox(
|
455 |
+
label="Keywords", placeholder="Keywords Output...", lines=5
|
456 |
+
).style(show_copy_button=True,
|
457 |
+
# container=True
|
458 |
+
)
|
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", scale=1)
|