mrfakename commited on
Commit
6f5cd14
1 Parent(s): 5a45154

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def gen(piano_only):
14
  cfg = VocabConfig.from_json('./vocab_config.json')
15
  text = midi.strip()
16
  mid = midi_util.convert_str_to_midi(cfg, text)
17
- mid.save(bio)
18
  audio = BytesIO()
19
  fs.midi_to_audio(bio.getvalue(), audio)
20
  return midi, bio.getvalue(), audio.getvalue()
 
14
  cfg = VocabConfig.from_json('./vocab_config.json')
15
  text = midi.strip()
16
  mid = midi_util.convert_str_to_midi(cfg, text)
17
+ mid.save(file=bio)
18
  audio = BytesIO()
19
  fs.midi_to_audio(bio.getvalue(), audio)
20
  return midi, bio.getvalue(), audio.getvalue()