lixiang46 commited on
Commit
948ddc1
1 Parent(s): b6434bc
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -238,7 +238,7 @@ with gr.Blocks(css=css) as Tryon:
238
 
239
 
240
  # try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon',concurrency_limit=10)
241
- test_button.click(fn=tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon',concurrency_limit=10)
242
 
243
  with gr.Column(elem_id = "col-showcase"):
244
  gr.HTML("""
@@ -262,4 +262,4 @@ with gr.Blocks(css=css) as Tryon:
262
 
263
  # ip = requests.get('http://ifconfig.me/ip', timeout=1).text.strip()
264
  # print("ip address", ip)
265
- Tryon.queue(max_size = 20).launch(max_threads = 5)
 
238
 
239
 
240
  # try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon',concurrency_limit=10)
241
+ test_button.click(fn=tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon')
242
 
243
  with gr.Column(elem_id = "col-showcase"):
244
  gr.HTML("""
 
262
 
263
  # ip = requests.get('http://ifconfig.me/ip', timeout=1).text.strip()
264
  # print("ip address", ip)
265
+ Tryon.launch()