linoyts HF Staff commited on
Commit
1f222e9
·
verified ·
1 Parent(s): 8105fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- # Apply background removal only for reference mode if checkbox is checked
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)