Ra-Is commited on
Commit
21e4f38
1 Parent(s): d6c20cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -31,10 +31,10 @@ with gr.Blocks() as demo:
31
  clear = gr.Button("Clear")
32
 
33
  audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn).\
34
- then(fn=lambda: None, _js=click_js()).\
35
- then(fn=check_btn, inputs=audio_btn).\
36
- success(fn=transcribe, outputs=msg)
37
 
38
- clear.click(lambda: None, None, msg, queue=False)
39
 
40
  demo.queue().launch(debug=True)
 
31
  clear = gr.Button("Clear")
32
 
33
  audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn).\
34
+ then(fn=lambda: None, _js=click_js()).\
35
+ then(fn=check_btn, inputs=audio_btn).\
36
+ success(fn=transcribe, outputs=msg)
37
 
38
+ clear.click(lambda: None, None, msg, queue=False)
39
 
40
  demo.queue().launch(debug=True)