Spaces:
Runtime error
Runtime error
Commit
•
c6c83bb
1
Parent(s):
2950a2e
Update app.py
Browse files
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 |
-
|
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()
|