Spaces:
Running
on
Zero
Running
on
Zero
File size: 376 Bytes
a66ecf5 0641943 a66ecf5 51a5105 a66ecf5 |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from musiclib import musicgen
def gen(piano_only):
for item in musicgen(piano_only=piano_only):
yield item
with gr.Blocks() as demo:
piano_only = gr.Checkbox(label="Piano Only")
synth = gr.Button("Synthesize")
fileout = gr.Textbox(interactive=False)
synth.click(gen, inputs=[piano_only], outputs=[fileout])
demo.queue().launch() |