videopix commited on
Commit
2f37e76
ยท
verified ยท
1 Parent(s): 2ea609f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -23
README.md CHANGED
@@ -1,27 +1,13 @@
1
  ---
2
- title: Background Removal API
3
- emoji: ๐Ÿ–ผ๏ธ
4
- colorFrom: blue
5
- colorTo: purple
6
  sdk: gradio
7
- pinned: false
 
 
 
8
  ---
9
 
10
- # Background Removal API (BiRefNet ONNX)
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