Spaces:
Runtime error
Runtime error
UI Changes
Browse files
app.py
CHANGED
|
@@ -76,16 +76,17 @@ with block:
|
|
| 76 |
)
|
| 77 |
with gr.Group():
|
| 78 |
with gr.Box():
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
| 82 |
wt = gr.Radio(["None", ".srt", ".csv"], label="With Timestamps?")
|
| 83 |
link = gr.Textbox(label="YouTube Link")
|
| 84 |
title = gr.Label(label="Video Title")
|
| 85 |
-
with gr.Row().style(
|
| 86 |
img = gr.Image(label="Thumbnail")
|
| 87 |
-
|
| 88 |
-
with gr.Row().style(
|
| 89 |
btn = gr.Button("Transcribe")
|
| 90 |
btn.click(gio, inputs=[link, lang, sz, wt], outputs=[text])
|
| 91 |
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
|
|
|
| 76 |
)
|
| 77 |
with gr.Group():
|
| 78 |
with gr.Box():
|
| 79 |
+
with gr.Row().style(equal_height=True):
|
| 80 |
+
sz = gr.Dropdown(label="Model Size", choices=gio.sizes, value='base')
|
| 81 |
+
lang = gr.Dropdown(label="Language (Optional)", choices=gio.langs, value="none")
|
| 82 |
+
with gr.Row().style(equal_height=True):
|
| 83 |
wt = gr.Radio(["None", ".srt", ".csv"], label="With Timestamps?")
|
| 84 |
link = gr.Textbox(label="YouTube Link")
|
| 85 |
title = gr.Label(label="Video Title")
|
| 86 |
+
with gr.Row().style(equal_height=True):
|
| 87 |
img = gr.Image(label="Thumbnail")
|
| 88 |
+
text = gr.Textbox(label="Transcription", placeholder="Transcription Output", lines=10)
|
| 89 |
+
with gr.Row().style(equal_height=True):
|
| 90 |
btn = gr.Button("Transcribe")
|
| 91 |
btn.click(gio, inputs=[link, lang, sz, wt], outputs=[text])
|
| 92 |
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|