Spaces:
Running
on
Zero
Running
on
Zero
parokshsaxena
commited on
Commit
β’
c58380c
1
Parent(s):
f65f11f
making api open
Browse files
app.py
CHANGED
@@ -280,7 +280,8 @@ for ex_human in human_list_path:
|
|
280 |
##default human
|
281 |
|
282 |
|
283 |
-
|
|
|
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()
|