Spaces:
Sleeping
Sleeping
Update app.py
Browse files20 unmodified lines2122232425262716 unmodified lines4445464748495020 unmodified lines])def fn(image: Union[PILImage.Image, str]) -> Tuple[PILImage.Image, PILImage.Image]:"""Remove the background from an image and return both the transparent version and the original.16 unmodified linesreturn (processed_image, origin)@spaces.GPUdef process(image: PILImage.Image) -> PILImage.Image:"""Apply BiRefNet-based image segmentation to remove the background.20 unmodified lines2122232425262716 unmodified lines4445464748495020 unmodified lines])def fn(image: Union[Image.Image, str]) -> Tuple[Image.Image, Image.Image]:"""Remove the background from an image and return both the transparent version and the original.16 unmodified linesreturn (processed_image, origin)@spaces.GPUdef process(image: Image.Image) -> Image.Image:"""Apply BiRefNet-based image segmentation to remove the background.
app.py+2-2