cmahima commited on
Commit
67e2e24
1 Parent(s): 147b35d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -315,7 +315,7 @@ with image_blocks as demo:
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
 
 
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, 9), 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