Spaces:
Runtime error
Runtime error
Download app.py from puriankit91/CreateUp: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/puriankit91/CreateUp/resolve/main/app.py
- Command line
-
hf download hf://spaces/puriankit91/CreateUp/app.py
-
curl -L -o app.py https://huggingface.co/spaces/puriankit91/CreateUp/resolve/main/app.py
381 Bytes
| import gradio as gr | |
| from rembg import remove | |
| from PIL import Image | |
| def remove_background(image): | |
| output = remove(image) | |
| return output | |
| iface = gr.Interface( | |
| fn=remove_background, | |
| inputs=gr.Image(type="pil"), | |
| outputs=gr.Image(type="pil"), | |
| title="AI Background Remover", | |
| description="Upload an image to instantly remove its background." | |
| ) | |
| iface.launch() |