mrfakename commited on
Commit
0641943
1 Parent(s): 51a5105

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
  from musiclib import musicgen
3
  def gen(piano_only):
4
- return musicgen(piano_only=piano_only)
 
5
  with gr.Blocks() as demo:
6
  piano_only = gr.Checkbox(label="Piano Only")
7
  synth = gr.Button("Synthesize")
 
1
  import gradio as gr
2
  from musiclib import musicgen
3
  def gen(piano_only):
4
+ for item in musicgen(piano_only=piano_only):
5
+ yield item
6
  with gr.Blocks() as demo:
7
  piano_only = gr.Checkbox(label="Piano Only")
8
  synth = gr.Button("Synthesize")