asigalov61
commited on
Commit
•
008d8d4
1
Parent(s):
a90523f
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def render_midi(input_midi, render_options):
|
|
110 |
output_midi_summary = str(meta_data)
|
111 |
output_midi = str(new_fn)
|
112 |
output_audio = (16000, audio)
|
113 |
-
output_plot = TMIDIX.plot_ms_SONG(escore)
|
114 |
|
115 |
#========================================================
|
116 |
|
@@ -154,7 +154,7 @@ if __name__ == "__main__":
|
|
154 |
)
|
155 |
gr.Markdown("## Upload your MIDI")
|
156 |
|
157 |
-
input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"], type="
|
158 |
|
159 |
gr.Markdown("## Select desired render options")
|
160 |
|
|
|
110 |
output_midi_summary = str(meta_data)
|
111 |
output_midi = str(new_fn)
|
112 |
output_audio = (16000, audio)
|
113 |
+
output_plot = TMIDIX.plot_ms_SONG(escore, plot_title=output_midi)
|
114 |
|
115 |
#========================================================
|
116 |
|
|
|
154 |
)
|
155 |
gr.Markdown("## Upload your MIDI")
|
156 |
|
157 |
+
input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"], type="filepath")
|
158 |
|
159 |
gr.Markdown("## Select desired render options")
|
160 |
|