Spaces:
Runtime error
Runtime error
add log
Browse files
app.py
CHANGED
@@ -321,6 +321,6 @@ with image_blocks as demo:
|
|
321 |
fetch_button.click(fn=fetch_products, inputs=prompt, outputs=[image_gallery, price_display, url_display])
|
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()
|
|
|
321 |
fetch_button.click(fn=fetch_products, inputs=prompt, outputs=[image_gallery, price_display, url_display])
|
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');console.log(buy_link) }}")
|
325 |
|
326 |
image_blocks.launch()
|