Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ def gen(piano_only, length):
|
|
20 |
return midi, bio.getvalue(), audio.getvalue()
|
21 |
with gr.Blocks() as demo:
|
22 |
piano_only = gr.Checkbox(label="Piano Only")
|
23 |
-
length = gr.Slider(label="Length", minimum=4, maximum=4096, step=1, value=4096)
|
24 |
synth = gr.Button("Synthesize")
|
25 |
-
txtout = gr.Textbox(interactive=False)
|
26 |
-
fileout = gr.File(interactive=False)
|
27 |
-
audioout = gr.Audio(interactive=False)
|
28 |
synth.click(gen, inputs=[piano_only, length], outputs=[txtout, fileout, audioout])
|
29 |
demo.queue().launch()
|
|
|
20 |
return midi, bio.getvalue(), audio.getvalue()
|
21 |
with gr.Blocks() as demo:
|
22 |
piano_only = gr.Checkbox(label="Piano Only")
|
23 |
+
length = gr.Slider(label="Length (in tokens)", minimum=4, maximum=4096, step=1, value=4096)
|
24 |
synth = gr.Button("Synthesize")
|
25 |
+
txtout = gr.Textbox(interactive=False, label="MIDI Length")
|
26 |
+
fileout = gr.File(interactive=False, label="MIDI File")
|
27 |
+
audioout = gr.Audio(interactive=False, label="Audio")
|
28 |
synth.click(gen, inputs=[piano_only, length], outputs=[txtout, fileout, audioout])
|
29 |
demo.queue().launch()
|