mimbres commited on
Commit
6f613c4
·
verified ·
1 Parent(s): bd8505c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -235,17 +235,6 @@ with gr.Blocks(theme=theme, css=css) as demo:
235
  """)
236
 
237
  with gr.Group():
238
- with gr.Tab("Upload audio"):
239
- # Input
240
- audio_input = gr.Audio(label="Record Audio", type="filepath",
241
- show_share_button=True, show_download_button=True)
242
- # Display examples
243
- gr.Examples(examples=AUDIO_EXAMPLES, inputs=audio_input)
244
- # Submit button
245
- transcribe_audio_button = gr.Button("Transcribe", variant="primary")
246
- # Transcribe
247
- output_tab1 = gr.HTML()
248
- transcribe_audio_button.click(process_audio, inputs=audio_input, outputs=output_tab1)
249
 
250
  with gr.Tab("From YouTube"):
251
  with gr.Column(scale=4):
@@ -277,4 +266,16 @@ with gr.Blocks(theme=theme, css=css) as demo:
277
  with gr.Column(scale=1):
278
  Log(log_file, dark=True, xterm_font_size=12, elem_id='mylog')
279
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  demo.launch(debug=True)
 
235
  """)
236
 
237
  with gr.Group():
 
 
 
 
 
 
 
 
 
 
 
238
 
239
  with gr.Tab("From YouTube"):
240
  with gr.Column(scale=4):
 
266
  with gr.Column(scale=1):
267
  Log(log_file, dark=True, xterm_font_size=12, elem_id='mylog')
268
 
269
+ with gr.Tab("Upload audio"):
270
+ # Input
271
+ audio_input = gr.Audio(label="Record Audio", type="filepath",
272
+ show_share_button=True, show_download_button=True)
273
+ # Display examples
274
+ gr.Examples(examples=AUDIO_EXAMPLES, inputs=audio_input)
275
+ # Submit button
276
+ transcribe_audio_button = gr.Button("Transcribe", variant="primary")
277
+ # Transcribe
278
+ output_tab1 = gr.HTML()
279
+ transcribe_audio_button.click(process_audio, inputs=audio_input, outputs=output_tab1)
280
+
281
  demo.launch(debug=True)