Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Update app.py
Browse files
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 |
-
|
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)
|