Spaces:
Runtime error
Runtime error
Update apps/utils.py
Browse files- apps/utils.py +3 -2
apps/utils.py
CHANGED
@@ -121,8 +121,9 @@ class RMBG(object):
|
|
121 |
|
122 |
image = do_resize_content(image, foreground_ratio)
|
123 |
image = expand_to_square(image)
|
124 |
-
image = add_background(image, backgroud_color)
|
125 |
-
return image.convert("RGB")
|
|
|
126 |
|
127 |
elif "Original" in background_choice:
|
128 |
return image
|
|
|
121 |
|
122 |
image = do_resize_content(image, foreground_ratio)
|
123 |
image = expand_to_square(image)
|
124 |
+
# image = add_background(image, backgroud_color)
|
125 |
+
# return image.convert("RGB")
|
126 |
+
return image
|
127 |
|
128 |
elif "Original" in background_choice:
|
129 |
return image
|