Spaces:
Runtime error
Runtime error
Update SegCloth.py
Browse files- SegCloth.py +2 -2
SegCloth.py
CHANGED
@@ -50,7 +50,7 @@ def segment_clothing(img, clothes=["Hat", "Upper-clothes", "Skirt", "Pants", "Dr
|
|
50 |
cropped_image = empty_image.crop((left, top, right, bottom))
|
51 |
|
52 |
# Encodage de l'image recadrΓ©e en base64
|
53 |
-
|
54 |
-
result_images.append((s['label'],
|
55 |
|
56 |
return result_images
|
|
|
50 |
cropped_image = empty_image.crop((left, top, right, bottom))
|
51 |
|
52 |
# Encodage de l'image recadrΓ©e en base64
|
53 |
+
imageBase64 = encode_image_to_base64(cropped_image)
|
54 |
+
result_images.append((s['label'], imageBase64))
|
55 |
|
56 |
return result_images
|