jeffh commited on
Commit
1c9b158
1 Parent(s): 1a3ef5d

UI Changes

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -76,16 +76,17 @@ with block:
76
  )
77
  with gr.Group():
78
  with gr.Box():
79
- sz = gr.Dropdown(label="Model Size", choices=gio.sizes, value='base')
80
- lang = gr.Dropdown(label="Language", choices=gio.langs, value="none")
81
- with gr.Row().style(mobile_collapse=False, equal_height=True):
 
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(mobile_collapse=False, equal_height=True):
86
  img = gr.Image(label="Thumbnail")
87
- text = gr.Textbox(label="Transcription", placeholder="Transcription Output", lines=5)
88
- with gr.Row().style(mobile_collapse=False, equal_height=True):
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])