caohy666 commited on
Commit
77c9352
·
1 Parent(s): c07e913

<fix> fix a single thread bug

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -103,7 +103,6 @@ def init_basemodel():
103
 
104
 
105
  @spaces.GPU
106
- @gr.queue(concurrency_count=1)
107
  def process_image_and_text(condition_image, target_prompt, condition_image_prompt, task, random_seed, num_steps, inpainting, fill_x1, fill_x2, fill_y1, fill_y2):
108
  # set up the model
109
  with pipe_lock:
@@ -529,4 +528,4 @@ def create_app():
529
 
530
  if __name__ == "__main__":
531
  init_basemodel()
532
- create_app().launch(debug=True, ssr_mode=False, max_threads=1)
 
103
 
104
 
105
  @spaces.GPU
 
106
  def process_image_and_text(condition_image, target_prompt, condition_image_prompt, task, random_seed, num_steps, inpainting, fill_x1, fill_x2, fill_y1, fill_y2):
107
  # set up the model
108
  with pipe_lock:
 
528
 
529
  if __name__ == "__main__":
530
  init_basemodel()
531
+ create_app().launch(debug=True, ssr_mode=False, max_threads=1, queue=True)