Spaces:
Running
on
Zero
Running
on
Zero
change app.py
Browse files
app.py
CHANGED
@@ -302,9 +302,6 @@ with image_blocks as demo:
|
|
302 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
303 |
image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
|
304 |
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
with gr.Column():
|
309 |
try_button = gr.Button(value="Try-on")
|
310 |
with gr.Accordion(label="Advanced Settings", open=False):
|
@@ -318,7 +315,7 @@ with image_blocks as demo:
|
|
318 |
if index is not None and index < len(gallery_images):
|
319 |
return gallery_images[index]
|
320 |
return None
|
321 |
-
image_gallery.select(fn=select_image, inputs=[gr.
|
322 |
|
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 |
|
|
|
302 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
303 |
image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
|
304 |
|
|
|
|
|
|
|
305 |
with gr.Column():
|
306 |
try_button = gr.Button(value="Try-on")
|
307 |
with gr.Accordion(label="Advanced Settings", open=False):
|
|
|
315 |
if index is not None and index < len(gallery_images):
|
316 |
return gallery_images[index]
|
317 |
return None
|
318 |
+
image_gallery.select(fn=select_image, inputs=[gr.Slider(0, len(image_gallery) - 1), image_gallery], outputs=garm_img)
|
319 |
|
320 |
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')
|
321 |
|