asigalov61 commited on
Commit
656e3b1
1 Parent(s): 361c433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(output), 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2')
143
 
144
- yield output, "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
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