sanchit-gandhi HF staff commited on
Commit
ed0517d
1 Parent(s): c6c83bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ with gr.Blocks() as demo:
16
  path_out = gr.Textbox(label="audio filepath")
17
 
18
  # Enable the button on upload
 
19
  audio_in.upload(fn=enable_button, outputs=run_button)
20
  run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out, path_out])
21
 
 
16
  path_out = gr.Textbox(label="audio filepath")
17
 
18
  # Enable the button on upload
19
+ audio_in.stop_recording(fn=enable_button, outputs=run_button)
20
  audio_in.upload(fn=enable_button, outputs=run_button)
21
  run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out, path_out])
22