Spaces:
Runtime error
Runtime error
TheStinger
commited on
Commit
•
498396a
1
Parent(s):
9cee1fc
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,9 @@ def main():
|
|
26 |
image_output = gr.Image(type='filepath', interactive=False)
|
27 |
|
28 |
create_spec_butt.click(fn=create_spectrogram_and_get_info, inputs=[audio_input], outputs=[output_markdown, image_output])
|
|
|
|
|
|
|
29 |
|
30 |
app.queue(max_size=1022).launch(share=True)
|
31 |
|
|
|
26 |
image_output = gr.Image(type='filepath', interactive=False)
|
27 |
|
28 |
create_spec_butt.click(fn=create_spectrogram_and_get_info, inputs=[audio_input], outputs=[output_markdown, image_output])
|
29 |
+
audio_input.change(fn=lambda: ({"value": "", "__type__": "update"},
|
30 |
+
{"value": "", "__type__": "update"}),
|
31 |
+
inputs=[], outputs=[image_output, output_markdown])
|
32 |
|
33 |
app.queue(max_size=1022).launch(share=True)
|
34 |
|