Files changed (2) hide show
  1. app.py +4 -2
  2. image (12).jpg +0 -0
app.py CHANGED
@@ -247,7 +247,7 @@ with gr.Blocks(css=css) as Tryon:
247
 
248
 
249
  # 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)
250
- test_button.click(fn=tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon', concurrency_limit=45)
251
 
252
  with gr.Column(elem_id = "col-showcase"):
253
  gr.HTML("""
@@ -269,4 +269,6 @@ with gr.Blocks(css=css) as Tryon:
269
  label=None
270
  )
271
 
272
- Tryon.queue(api_open=False).launch(show_api=False)
 
 
 
247
 
248
 
249
  # 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)
250
+ test_button.click(fn=tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name=False, concurrency_limit=45)
251
 
252
  with gr.Column(elem_id = "col-showcase"):
253
  gr.HTML("""
 
269
  label=None
270
  )
271
 
272
+ # ip = requests.get('http://ifconfig.me/ip', timeout=1).text.strip()
273
+ # print("ip address", ip)
274
+ Tryon.launch()
image (12).jpg ADDED