mrfakename commited on
Commit
a66ecf5
1 Parent(s): 2fe86e4

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from musiclib import musicgen
3
+ def gen(piano_only):
4
+ return musicgen(piano_only)
5
+ with gr.Blocks() as demo:
6
+ piano_only = gr.Checkbox(label="Piano Only")
7
+ synth = gr.Button("Synthesize")
8
+ fileout = gr.File(interactive=False)
9
+ synth.click(gen, inputs=[piano_only], outputs=[fileout])
10
+ demo.queue().launch()