Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -167,6 +167,7 @@ def preprocess(input_image, do_remove_background, foreground_ratio):
|
|
167 |
image = remove_background(image, rembg_session)
|
168 |
image = resize_foreground(image, foreground_ratio)
|
169 |
image = fill_background(image)
|
|
|
170 |
else:
|
171 |
image = input_image
|
172 |
if image.mode == "RGBA":
|
|
|
167 |
image = remove_background(image, rembg_session)
|
168 |
image = resize_foreground(image, foreground_ratio)
|
169 |
image = fill_background(image)
|
170 |
+
print("do_remove_back")
|
171 |
else:
|
172 |
image = input_image
|
173 |
if image.mode == "RGBA":
|