Spaces:
Sleeping
Sleeping
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()) | |
``` |