Sergidev commited on
Commit
f39a325
·
verified ·
1 Parent(s): 5124367

History v2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -337,6 +337,7 @@ with gr.Blocks(css="style.css") as demo:
337
  upscale_by,
338
  ],
339
  outputs=[output_image, output_text, history],
 
340
  )
341
 
342
  # Add a function to update the history display
@@ -360,5 +361,4 @@ with gr.Blocks(css="style.css") as demo:
360
  # Connect the update_history function to the history component
361
  history.change(update_history, inputs=[history], outputs=[history])
362
 
363
- demo.queue(concurrency_count=1, max_size=20)
364
- demo.launch(debug=True)
 
337
  upscale_by,
338
  ],
339
  outputs=[output_image, output_text, history],
340
+ concurrency_limit=1
341
  )
342
 
343
  # Add a function to update the history display
 
361
  # Connect the update_history function to the history component
362
  history.change(update_history, inputs=[history], outputs=[history])
363
 
364
+ demo.launch(debug=True, max_threads=20)