Spaces:
Running
on
Zero
Running
on
Zero
Fix order of return values in docstring for `fn`
Browse filesThis 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
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")
|