Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,20 +74,21 @@ with block:
|
|
74 |
</div>
|
75 |
"""
|
76 |
)
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
sz = gr.Dropdown(label="
|
81 |
-
lang = gr.Dropdown(label="
|
82 |
-
|
83 |
-
wt = gr.Radio(["
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
img = gr.Image(label="
|
88 |
-
text = gr.Textbox(label="
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
74 |
</div>
|
75 |
"""
|
76 |
)
|
77 |
+
with gr.Group():
|
78 |
+
with gr.Box():
|
79 |
+
with gr.Row().style(equal_height=True):
|
80 |
+
sz = gr.Dropdown(label="Dimensione Modello", choices=gio.sizes, value='base')
|
81 |
+
lang = gr.Dropdown(label="Lingua (Opzionale)", choices=gio.langs, value="none")
|
82 |
+
with gr.Row().style(equal_height=True):
|
83 |
+
wt = gr.Radio(["Nessuno", ".srt", ".csv"], label="Con Timestamp?")
|
84 |
+
link = gr.Textbox(label="Link YouTube")
|
85 |
+
title = gr.Label(label="Titolo Video")
|
86 |
+
with gr.Row().style(equal_height=True):
|
87 |
+
img = gr.Image(label="Miniatura")
|
88 |
+
text = gr.Textbox(label="Trascrizione", placeholder="Output Trascrizione", lines=10)
|
89 |
+
with gr.Row().style(equal_height=True):
|
90 |
+
btn = gr.Button("Trascrivi")
|
91 |
+
btn.click(gio, inputs=[link, lang, sz, wt], outputs=[text])
|
92 |
+
link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
|
93 |
+
|
94 |
+
block.launch()
|