face-detection / README.md
Alex
input image base64 e update della risposta
13c1ff0
---
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())
```