Spaces:
Sleeping
Sleeping
Download app_basic.py from ngupta949/facedetect: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/ngupta949/facedetect/resolve/main/app_basic.py
- Command line
-
hf download hf://spaces/ngupta949/facedetect/app_basic.py
-
curl -L -o app_basic.py https://huggingface.co/spaces/ngupta949/facedetect/resolve/main/app_basic.py
353 Bytes
| import gradio as gr | |
| def detect_faces(image ) : | |
| # detect faces | |
| return image | |
| iface = gr.Interface( fn=detect_faces, | |
| inputs="image", | |
| outputs="image", | |
| title="Face Detection using Haar Cascade Classifier ", | |
| description="Upload an image,and the model will detect faces and draw bounding boxes around them.", | |
| ) | |
| iface.launch() |