Spaces:
Running
Running
asigalov61
commited on
Commit
•
a92febf
1
Parent(s):
cbc2b68
Update app.py
Browse files
app.py
CHANGED
@@ -82,15 +82,13 @@ if __name__ == "__main__":
|
|
82 |
|
83 |
|
84 |
input_midi = gr.File(label="input midi", file_types=[".midi", ".mid"], type="binary")
|
85 |
-
|
86 |
-
search_btn = gr.Button("search", variant="primary")
|
87 |
|
88 |
output_audio = gr.Audio(label="output audio", format="mp3", elem_id="midi_audio")
|
89 |
output_midi = gr.File(label="output midi", file_types=[".mid"])
|
90 |
output_midi_seq = gr.Textbox(label="output midi metadata")
|
91 |
output_plot = gr.Plot(label="output midi plot")
|
92 |
|
93 |
-
run_event =
|
94 |
-
|
95 |
|
96 |
app.queue(1).launch(server_port=opt.port, share=opt.share, inbrowser=True)
|
|
|
82 |
|
83 |
|
84 |
input_midi = gr.File(label="input midi", file_types=[".midi", ".mid"], type="binary")
|
|
|
|
|
85 |
|
86 |
output_audio = gr.Audio(label="output audio", format="mp3", elem_id="midi_audio")
|
87 |
output_midi = gr.File(label="output midi", file_types=[".mid"])
|
88 |
output_midi_seq = gr.Textbox(label="output midi metadata")
|
89 |
output_plot = gr.Plot(label="output midi plot")
|
90 |
|
91 |
+
run_event = input_midi.upload(run, [input_midi],
|
92 |
+
[output_midi_seq, output_midi, output_audio, output_plot])
|
93 |
|
94 |
app.queue(1).launch(server_port=opt.port, share=opt.share, inbrowser=True)
|