adefossez commited on
Commit
7d611c4
1 Parent(s): d277b14

max batch size 1

Browse files
Files changed (1) hide show
  1. app_batched.py +1 -1
app_batched.py CHANGED
@@ -99,7 +99,7 @@ with gr.Blocks() as demo:
99
  submit = gr.Button("Submit")
100
  with gr.Column():
101
  output = gr.Audio(label="Generated Music", type="filepath", format="wav")
102
- submit.click(predict, inputs=[text, melody], outputs=[output], batch=True, max_batch_size=12)
103
  gr.Examples(
104
  fn=predict,
105
  examples=[
 
99
  submit = gr.Button("Submit")
100
  with gr.Column():
101
  output = gr.Audio(label="Generated Music", type="filepath", format="wav")
102
+ submit.click(predict, inputs=[text, melody], outputs=[output], batch=True, max_batch_size=1)
103
  gr.Examples(
104
  fn=predict,
105
  examples=[