File size: 635 Bytes
cdfd25e
 
 
 
 
 
 
 
 
 
 
 
13c1ff0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: Face Detection
emoji: πŸ“ˆ
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.19.0
app_file: app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# Test the endpoint with Curl 
```
curl -X POST -F "file=@test_image.jpg" https://tuo-username-singlefacedetector.hf.space/detect_single_face
```

# Test the endpoint with python 

```
import requests

url = "https://tuo-username-singlefacedetector.hf.space/detect_single_face"
with open("test_image.jpg", "rb") as f:
    response = requests.post(url, files={"file": f})
print(response.json())
```