Spaces:
Sleeping
Sleeping
fix bug
Browse files
app.py
CHANGED
@@ -309,7 +309,7 @@ with image_blocks as demo:
|
|
309 |
image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
|
310 |
try_button = gr.Button(value="Try-on")
|
311 |
buy_link = gr.Textbox(label="URL of Selected Image", interactive=False, visible=False)
|
312 |
-
|
313 |
output = gr.HTML()
|
314 |
with gr.Column():
|
315 |
with gr.Accordion(label="Advanced Settings", open=False):
|
@@ -322,4 +322,5 @@ with image_blocks as demo:
|
|
322 |
image_gallery.select(select_image, [image_gallery, url_display], [garm_img, buy_link])
|
323 |
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
|
324 |
buy_button.click(fn=None,inputs=buy_link,js=f"(buy_link) => {{ window.open(buy_link.substring(buy_link.indexOf('amazon.com')), '_blank'); }}")
|
|
|
325 |
image_blocks.launch()
|
|
|
309 |
image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
|
310 |
try_button = gr.Button(value="Try-on")
|
311 |
buy_link = gr.Textbox(label="URL of Selected Image", interactive=False, visible=False)
|
312 |
+
buy_button = gr.Button(value="Like it? Click to buy")
|
313 |
output = gr.HTML()
|
314 |
with gr.Column():
|
315 |
with gr.Accordion(label="Advanced Settings", open=False):
|
|
|
322 |
image_gallery.select(select_image, [image_gallery, url_display], [garm_img, buy_link])
|
323 |
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
|
324 |
buy_button.click(fn=None,inputs=buy_link,js=f"(buy_link) => {{ window.open(buy_link.substring(buy_link.indexOf('amazon.com')), '_blank'); }}")
|
325 |
+
|
326 |
image_blocks.launch()
|