parokshsaxena commited on
Commit
c58380c
β€’
1 Parent(s): f65f11f

making api open

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -280,7 +280,8 @@ for ex_human in human_list_path:
280
  ##default human
281
 
282
 
283
- image_blocks = gr.Blocks().queue()
 
284
  with image_blocks as demo:
285
  gr.Markdown("## Virtual Try-On πŸ‘•πŸ‘”πŸ‘š")
286
  gr.Markdown("Upload an image of a person and an image of a garment ✨.")
@@ -339,6 +340,4 @@ with image_blocks as demo:
339
  try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, background_img, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
340
 
341
 
342
-
343
-
344
  image_blocks.launch()
 
280
  ##default human
281
 
282
 
283
+ # api_open=True will allow this API to be hit using curl
284
+ image_blocks = gr.Blocks().queue(api_open=True)
285
  with image_blocks as demo:
286
  gr.Markdown("## Virtual Try-On πŸ‘•πŸ‘”πŸ‘š")
287
  gr.Markdown("Upload an image of a person and an image of a garment ✨.")
 
340
  try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, background_img, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
341
 
342
 
 
 
343
  image_blocks.launch()