asigalov61
commited on
Commit
•
8bdfa67
1
Parent(s):
6e42c0c
Update app.py
Browse files
app.py
CHANGED
@@ -151,6 +151,8 @@ def find_midi(input_search_string):
|
|
151 |
|
152 |
patches = [0 if x==-1 else x for x in patches]
|
153 |
|
|
|
|
|
154 |
print('=' * 70)
|
155 |
|
156 |
#===============================================================================
|
@@ -261,7 +263,7 @@ if __name__ == "__main__":
|
|
261 |
output_midi_caption = gr.Textbox(label="MIDI caption string")
|
262 |
output_midi_summary = gr.Textbox(label="Aggregated MIDI file text metadata")
|
263 |
output_midi_caps = gr.Textbox(label="MidiCaps dataset information")
|
264 |
-
output_audio = gr.Audio(label="Output MIDI audio", format="
|
265 |
output_plot = gr.Plot(label="Output MIDI score plot")
|
266 |
output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
|
267 |
|
|
|
151 |
|
152 |
patches = [0 if x==-1 else x for x in patches]
|
153 |
|
154 |
+
song_f = song_f[:3000]
|
155 |
+
|
156 |
print('=' * 70)
|
157 |
|
158 |
#===============================================================================
|
|
|
263 |
output_midi_caption = gr.Textbox(label="MIDI caption string")
|
264 |
output_midi_summary = gr.Textbox(label="Aggregated MIDI file text metadata")
|
265 |
output_midi_caps = gr.Textbox(label="MidiCaps dataset information")
|
266 |
+
output_audio = gr.Audio(label="Output MIDI audio", format="mp3", elem_id="midi_audio")
|
267 |
output_plot = gr.Plot(label="Output MIDI score plot")
|
268 |
output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
|
269 |
|