hysts HF Staff commited on
Commit
b15d723
·
1 Parent(s): f95d483
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ def remove_background(image: PIL.Image.Image) -> tuple[PIL.Image.Image, PIL.Imag
14
  image: The image to remove the background from.
15
 
16
  Returns:
17
- A tuple containing the original image and the image with the background removed.
18
  """
19
- return image, rembg.remove(image)
20
 
21
 
22
  with gr.Blocks(css_paths="style.css") as demo:
 
14
  image: The image to remove the background from.
15
 
16
  Returns:
17
+ A tuple containing the image with the background removed and the original image.
18
  """
19
+ return rembg.remove(image), image
20
 
21
 
22
  with gr.Blocks(css_paths="style.css") as demo: