Spaces:
Running
on
Zero
Running
on
Zero
<fix> fix a thread bug
Browse files
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,6 @@ def create_app():
|
|
529 |
|
530 |
if __name__ == "__main__":
|
531 |
init_basemodel()
|
532 |
-
|
|
|
|
|
|
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 |
+
app = create_app()
|
532 |
+
app.queue(default_concurrency_limit=1)
|
533 |
+
app.launch(debug=True, ssr_mode=False, max_threads=1)
|