Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,6 @@ def detect_faces(image):
|
|
26 |
for (x, y, w, h) in faces:
|
27 |
cv2.rectangle(image_np, (x, y), (x+w, y+h), (0, 255, 0), 2)
|
28 |
|
29 |
-
image = Image.open(image)
|
30 |
label_out = pipe(image)
|
31 |
|
32 |
return (image_np,im,label_out[0]['label'])
|
|
|
26 |
for (x, y, w, h) in faces:
|
27 |
cv2.rectangle(image_np, (x, y), (x+w, y+h), (0, 255, 0), 2)
|
28 |
|
|
|
29 |
label_out = pipe(image)
|
30 |
|
31 |
return (image_np,im,label_out[0]['label'])
|