Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -210,9 +210,7 @@ def infer(
|
|
| 210 |
for img in gallery_images:
|
| 211 |
image = img[0] # Extract PIL image from gallery format
|
| 212 |
|
| 213 |
-
|
| 214 |
-
if mode == "Reference" and remove_bg: # Updated to use new mode name
|
| 215 |
-
image = remove_background_from_image(image)
|
| 216 |
|
| 217 |
# Always remove alpha channels to ensure RGB format
|
| 218 |
image = remove_alpha_channel(image)
|
|
|
|
| 210 |
for img in gallery_images:
|
| 211 |
image = img[0] # Extract PIL image from gallery format
|
| 212 |
|
| 213 |
+
image = remove_background_from_image(image)
|
|
|
|
|
|
|
| 214 |
|
| 215 |
# Always remove alpha channels to ensure RGB format
|
| 216 |
image = remove_alpha_channel(image)
|