abidlabs HF Staff commited on
Commit
e552388
·
verified ·
1 Parent(s): 60818d2

Fix order of return values in docstring for `fn`

Browse files

This PR fixes the order of return values in docstring for `fn`, which is particularly important when this Space is used as an MCP tool so that MCP clients know which image to use

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,8 +35,8 @@ def fn(image: Union[Image.Image, str]) -> Tuple[Image.Image, Image.Image]:
35
 
36
  Returns:
37
  tuple:
38
- - processed_image (PIL.Image): The input image with the background removed and transparency applied.
39
  - origin (PIL.Image): The original RGB image, unchanged.
 
40
  """
41
  im = load_img(image, output_type="pil")
42
  im = im.convert("RGB")
 
35
 
36
  Returns:
37
  tuple:
 
38
  - origin (PIL.Image): The original RGB image, unchanged.
39
+ - processed_image (PIL.Image): The input image with the background removed and transparency applied.
40
  """
41
  im = load_img(image, output_type="pil")
42
  im = im.convert("RGB")