Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def detect_faces(image_np,slider):
|
|
| 18 |
for (x, y, w, h) in faces:
|
| 19 |
cv2.rectangle(image_np, (x, y), (x + w, y + h), (0, 255, 0), 2)
|
| 20 |
|
| 21 |
-
return image_np
|
| 22 |
|
| 23 |
# Create Gradio Interface
|
| 24 |
iface = gr.Interface(
|
|
|
|
| 18 |
for (x, y, w, h) in faces:
|
| 19 |
cv2.rectangle(image_np, (x, y), (x + w, y + h), (0, 255, 0), 2)
|
| 20 |
|
| 21 |
+
return image_np, len(faces)
|
| 22 |
|
| 23 |
# Create Gradio Interface
|
| 24 |
iface = gr.Interface(
|