Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
656e3b1
1
Parent(s):
361c433
Update app.py
Browse files
app.py
CHANGED
@@ -139,9 +139,9 @@ def GenerateMIDI(progress=gr.Progress()):
|
|
139 |
with open(f"Allegro-Music-Transformer-Music-Composition.mid", 'wb') as f:
|
140 |
f.write(midi_data)
|
141 |
|
142 |
-
audio = synthesis(TMIDIX.score2opus(
|
143 |
|
144 |
-
yield
|
145 |
|
146 |
#=================================================================================================
|
147 |
|
|
|
139 |
with open(f"Allegro-Music-Transformer-Music-Composition.mid", 'wb') as f:
|
140 |
f.write(midi_data)
|
141 |
|
142 |
+
audio = synthesis(TMIDIX.score2opus([500, song_f]), 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2')
|
143 |
|
144 |
+
yield [500, song_f], "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
|
145 |
|
146 |
#=================================================================================================
|
147 |
|