asigalov61 commited on
Commit
5384a65
1 Parent(s): 819a468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def run(search_prompt, mid=None):
106
  yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [i + 1, len(mid_seq)])]
107
 
108
  with open(f"output.mid", 'wb') as f:
109
- f.write(MIDI.score2midi(mid_seq))
110
  audio = synthesis(MIDI.score2opus([mid_seq_ticks, [mid_seq]]), soundfont_path)
111
  yield mid_seq, "output.mid", (44100, audio), [create_msg("visualizer_end", None)]
112
 
 
106
  yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [i + 1, len(mid_seq)])]
107
 
108
  with open(f"output.mid", 'wb') as f:
109
+ f.write(MIDI.score2midi([mid_seq_ticks, [mid_seq]]))
110
  audio = synthesis(MIDI.score2opus([mid_seq_ticks, [mid_seq]]), soundfont_path)
111
  yield mid_seq, "output.mid", (44100, audio), [create_msg("visualizer_end", None)]
112