Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def detect_faces(image ) :
|
4 |
+
# detect faces
|
5 |
+
return image
|
6 |
+
|
7 |
+
iface = gr.Interface( fn=detect_faces,
|
8 |
+
inputs="image",
|
9 |
+
outputs="image",
|
10 |
+
title="Face Detection using Haar Cascade Classifier ",
|
11 |
+
description="Upload an image,and the model will detect faces and draw bounding boxes around them.",
|
12 |
+
)
|
13 |
+
|
14 |
+
iface.launch()
|