Spaces:
Running
Running
P01yH3dr0n
commited on
Commit
•
141cf85
1
Parent(s):
a3512f8
Update app.py
Browse files
app.py
CHANGED
@@ -135,8 +135,8 @@ def main_ui():
|
|
135 |
gen_btn, paras, others = control_ui()
|
136 |
with gr.Column():
|
137 |
image, info = preview_ui()
|
138 |
-
gen_btn.click(generate, paras + [others[0]], [image, info])
|
139 |
-
others[2].click(lambda o, s: o if len(s) == 0 else s['parameters']['seed'], inputs=[paras[3], info], outputs=paras[3]
|
140 |
others[3].click(lambda i: i, inputs=image, outputs=paras[14])
|
141 |
others[4].click(lambda i: i, inputs=image, outputs=paras[17])
|
142 |
return page, paras[:14]
|
@@ -182,4 +182,5 @@ def ui():
|
|
182 |
|
183 |
if __name__ == '__main__':
|
184 |
website = ui()
|
|
|
185 |
website.launch(auth=(os.environ.get('account'), os.environ.get('password')), allowed_paths=['tagcomplete'], debug=True)
|
|
|
135 |
gen_btn, paras, others = control_ui()
|
136 |
with gr.Column():
|
137 |
image, info = preview_ui()
|
138 |
+
gen_btn.click(generate, paras + [others[0]], [image, info], concurrency_limit=1)
|
139 |
+
others[2].click(lambda o, s: o if len(s) == 0 else s['parameters']['seed'], inputs=[paras[3], info], outputs=paras[3])
|
140 |
others[3].click(lambda i: i, inputs=image, outputs=paras[14])
|
141 |
others[4].click(lambda i: i, inputs=image, outputs=paras[17])
|
142 |
return page, paras[:14]
|
|
|
182 |
|
183 |
if __name__ == '__main__':
|
184 |
website = ui()
|
185 |
+
website.queue(default_concurrency_limit=5)
|
186 |
website.launch(auth=(os.environ.get('account'), os.environ.get('password')), allowed_paths=['tagcomplete'], debug=True)
|