P01yH3dr0n commited on
Commit
399c110
1 Parent(s): 8895740

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -136,7 +136,7 @@ def main_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,5 +182,4 @@ def ui():
182
 
183
  if __name__ == '__main__':
184
  website = ui()
185
- website.queue()
186
- website.launch(auth=(os.environ.get('account'), os.environ.get('password')), allowed_paths=['tagcomplete'])
 
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], concurrency_limit=1)
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.launch(auth=(os.environ.get('account'), os.environ.get('password')), allowed_paths=['tagcomplete'], debug=True)