Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
01094e0
1
Parent(s):
2ffbebd
Update app.py
Browse files
app.py
CHANGED
@@ -214,7 +214,7 @@ if __name__ == "__main__":
|
|
214 |
output_midi_visualizer = gr.HTML(elem_id="midi_visualizer_container")
|
215 |
output_audio = gr.Audio(label="output audio", format="mp3", elem_id="midi_audio")
|
216 |
output_midi = gr.File(label="output midi", file_types=[".mid"])
|
217 |
-
run_event = run_btn.click(GenerateMIDI, [output_midi_seq, output_midi, output_audio, js_msg])
|
218 |
stop_btn.click(cancel_run, output_midi_seq, [output_midi, output_audio, js_msg], cancels=run_event, queue=False)
|
219 |
|
220 |
app.queue(2).launch(server_port=opt.port, share=opt.share, inbrowser=True)
|
|
|
214 |
output_midi_visualizer = gr.HTML(elem_id="midi_visualizer_container")
|
215 |
output_audio = gr.Audio(label="output audio", format="mp3", elem_id="midi_audio")
|
216 |
output_midi = gr.File(label="output midi", file_types=[".mid"])
|
217 |
+
run_event = run_btn.click(GenerateMIDI, [], [output_midi_seq, output_midi, output_audio, js_msg])
|
218 |
stop_btn.click(cancel_run, output_midi_seq, [output_midi, output_audio, js_msg], cancels=run_event, queue=False)
|
219 |
|
220 |
app.queue(2).launch(server_port=opt.port, share=opt.share, inbrowser=True)
|