Spaces:
Runtime error
Runtime error
max batch size 1
Browse files- 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=
|
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=[
|