rwkv-music / app.py
mrfakename's picture
Create app.py
a66ecf5 verified
raw
history blame
337 Bytes
import gradio as gr
from musiclib import musicgen
def gen(piano_only):
return musicgen(piano_only)
with gr.Blocks() as demo:
piano_only = gr.Checkbox(label="Piano Only")
synth = gr.Button("Synthesize")
fileout = gr.File(interactive=False)
synth.click(gen, inputs=[piano_only], outputs=[fileout])
demo.queue().launch()