Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,27 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Background Removal
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
This Space runs a FastAPI server for background removal using the BiRefNet ONNX model.
|
| 13 |
-
|
| 14 |
-
## How to use
|
| 15 |
-
- Upload an image to the `/remove-background` endpoint.
|
| 16 |
-
- It returns a PNG with a transparent background.
|
| 17 |
-
|
| 18 |
-
### Example (Python client)
|
| 19 |
-
```python
|
| 20 |
-
import requests
|
| 21 |
-
|
| 22 |
-
url = "https://YOUR-USERNAME-YOURSPACE.hf.space/remove-background"
|
| 23 |
-
files = {"file": open("example.jpg", "rb")}
|
| 24 |
-
response = requests.post(url, files=files)
|
| 25 |
-
|
| 26 |
-
with open("output.png", "wb") as f:
|
| 27 |
-
f.write(response.content)
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Background Removal
|
| 3 |
+
emoji: ๐w๐
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.35.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|