lainlives commited on
Commit
cdc565e
·
1 Parent(s): 055d511
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -187,13 +187,13 @@ with gr.Blocks(css=css) as demo:
187
  value="Show me a glorious mountain range covered in colorful crystaline trees with a laser disco show from space.",
188
  container=False,
189
  )
190
- results = [
191
- gr.Image(format="png", show_label=False)
192
- for _ in range(MAX_BATCH_SIZE)
193
- ]
194
  run_button = gr.Button("Run", scale=0)
195
  run_button.click(
196
- concurrency_limit=None,
197
  fn=infer,
198
  inputs=[
199
  prompt,
@@ -217,4 +217,4 @@ with gr.Blocks(css=css) as demo:
217
 
218
 
219
 
220
- demo.queue().launch()
 
187
  value="Show me a glorious mountain range covered in colorful crystaline trees with a laser disco show from space.",
188
  container=False,
189
  )
190
+ results = [
191
+ gr.Image(format="png", show_label=False)
192
+ for _ in range(MAX_BATCH_SIZE)
193
+ ]
194
  run_button = gr.Button("Run", scale=0)
195
  run_button.click(
196
+ concurrency_limit=25,
197
  fn=infer,
198
  inputs=[
199
  prompt,
 
217
 
218
 
219
 
220
+ demo.queue(default_concurrency_limit=25).launch()