Spaces:
Runtime error
Runtime error
fix
Browse files
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
|
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):
|
|
|
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):
|