pianoweb commited on
Commit
61f098c
1 Parent(s): d1cdf60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -74,21 +74,20 @@ with block:
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()
 
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()