mrfakename commited on
Commit
d3d4287
·
verified ·
1 Parent(s): 016958e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def gen(piano_only, length):
13
  text = midi.strip()
14
  mid = midi_util.convert_str_to_midi(cfg, text)
15
  mid.save(file=bio)
16
- return midi, bio.getvalue()
17
  with gr.Blocks() as demo:
18
  piano_only = gr.Checkbox(label="Piano Only")
19
  length = gr.Slider(label="Length (in tokens)", minimum=4, maximum=4096, step=1, value=4096)
 
13
  text = midi.strip()
14
  mid = midi_util.convert_str_to_midi(cfg, text)
15
  mid.save(file=bio)
16
+ yield midi, bio.getvalue()
17
  with gr.Blocks() as demo:
18
  piano_only = gr.Checkbox(label="Piano Only")
19
  length = gr.Slider(label="Length (in tokens)", minimum=4, maximum=4096, step=1, value=4096)