Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,21 +74,20 @@ with block:
|
|
74 |
</div>
|
75 |
"""
|
76 |
)
|
77 |
-
with gr.Group():
|
78 |
-
|
79 |
-
|
80 |
-
sz = gr.Dropdown(label="
|
81 |
-
lang = gr.Dropdown(label="Lingua (
|
82 |
-
|
83 |
-
wt = gr.Radio(["
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
img = gr.Image(label="
|
88 |
-
text = gr.Textbox(label="Trascrizione", placeholder="Output
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
block.launch()
|
|
|
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="Modello di trascrizione (consigliato large v2)", 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(["None", ".srt", ".csv"], label="Con Timestamps?")
|
84 |
+
link = gr.Textbox(label="YouTube Link")
|
85 |
+
title = gr.Label(label="Titolo Video")
|
86 |
+
with gr.Row().style(equal_height=True):
|
87 |
+
img = gr.Image(label="Thumbnail")
|
88 |
+
text = gr.Textbox(label="Trascrizione", placeholder="Trascrizione Output", 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 |
+
block.launch()
|
|