Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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),
|
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 |
|