skytnt commited on
Commit
f60d1e9
1 Parent(s): 6481a43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -156,7 +156,7 @@ def run(model_name, tab, instruments, drum_kit, mid, midi_events, gen_events, te
156
  mid = tokenizer.detokenize(mid_seq)
157
  with open(f"output.mid", 'wb') as f:
158
  f.write(MIDI.score2midi(mid))
159
- audio = synthesis(MIDI.score2opus(mid), opt.soundfont_path)
160
  yield mid_seq, "output.mid", (44100, audio), [create_msg("visualizer_end", None)]
161
 
162
 
 
156
  mid = tokenizer.detokenize(mid_seq)
157
  with open(f"output.mid", 'wb') as f:
158
  f.write(MIDI.score2midi(mid))
159
+ audio = synthesis(MIDI.score2opus(mid), soundfont_path)
160
  yield mid_seq, "output.mid", (44100, audio), [create_msg("visualizer_end", None)]
161
 
162