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

Update app.py

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