ameerazam08 commited on
Commit
1e6b447
·
verified ·
1 Parent(s): 4eb6b75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -127,7 +127,7 @@ block = gr.Blocks(
127
  theme=gr.themes.Soft(
128
  radius_size=gr.themes.sizes.radius_none,
129
  text_size=gr.themes.sizes.text_md)
130
- ).queue()
131
  #concurrency_count=2,
132
  with block:
133
  with gr.Row():
@@ -310,5 +310,5 @@ with block:
310
  ips=[original_image, original_mask, input_mask, selected_points, prompt,negative_prompt,guidance_scale,steps,strength,scheduler]
311
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery, request_id, gallery_flag])
312
 
313
- block.launch()
314
 
 
127
  theme=gr.themes.Soft(
128
  radius_size=gr.themes.sizes.radius_none,
129
  text_size=gr.themes.sizes.text_md)
130
+ ).queue(max_size=40, api_open=False)
131
  #concurrency_count=2,
132
  with block:
133
  with gr.Row():
 
310
  ips=[original_image, original_mask, input_mask, selected_points, prompt,negative_prompt,guidance_scale,steps,strength,scheduler]
311
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery, request_id, gallery_flag])
312
 
313
+ block.launch(max_threads=400)
314