OthmaneLKH commited on
Commit
c95dea7
1 Parent(s): da27e0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -565,7 +565,6 @@ with demo:
565
 
566
  msg = gr.Textbox()
567
 
568
- # Removed the `source` argument as it's no longer supported
569
  audio_box = gr.Audio(label="Audio", type="filepath", elem_id='audio')
570
 
571
  with gr.Row():
@@ -573,7 +572,6 @@ with demo:
573
  clear = gr.Button("Clear")
574
 
575
  audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn) \
576
- .then(fn=lambda: None, _js=click_js()) \
577
  .then(fn=check_btn, inputs=audio_btn) \
578
  .success(fn=transcribe, outputs=msg)
579
 
 
565
 
566
  msg = gr.Textbox()
567
 
 
568
  audio_box = gr.Audio(label="Audio", type="filepath", elem_id='audio')
569
 
570
  with gr.Row():
 
572
  clear = gr.Button("Clear")
573
 
574
  audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn) \
 
575
  .then(fn=check_btn, inputs=audio_btn) \
576
  .success(fn=transcribe, outputs=msg)
577