cmahima commited on
Commit
d28700b
1 Parent(s): c8aa9fb
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -255,9 +255,9 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
255
  if is_checked_crop:
256
  out_img = images[0].resize(crop_size)
257
  human_img_orig.paste(out_img, (int(left), int(top)))
258
- return human_img_orig, mask_gray
259
  else:
260
- return images[0], mask_gray
261
  # return images[0], mask_gray
262
  # Function to handle image selection from the gallery
263
  def select_image(images, urls, evt: gr.SelectData):
 
255
  if is_checked_crop:
256
  out_img = images[0].resize(crop_size)
257
  human_img_orig.paste(out_img, (int(left), int(top)))
258
+ return human_img_orig
259
  else:
260
+ return images[0]
261
  # return images[0], mask_gray
262
  # Function to handle image selection from the gallery
263
  def select_image(images, urls, evt: gr.SelectData):