Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ def GenerateMIDI(num_tok, idrums, iinstr):
|
|
151 |
|
152 |
output[-1].append(event)
|
153 |
|
154 |
-
midi_data = TMIDIX.score2midi(output
|
155 |
|
156 |
with open(f"Allegro-Music-Transformer-Composition.mid", 'wb') as f:
|
157 |
f.write(midi_data)
|
|
|
151 |
|
152 |
output[-1].append(event)
|
153 |
|
154 |
+
midi_data = TMIDIX.score2midi(output, text_encoding)
|
155 |
|
156 |
with open(f"Allegro-Music-Transformer-Composition.mid", 'wb') as f:
|
157 |
f.write(midi_data)
|