Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from torch_mtcnn import show_bboxes
|
|
15 |
def pipeline(img):
|
16 |
bounding_boxes, landmarks = detect_faces(img)
|
17 |
if len(bounding_boxes) == 0:
|
18 |
-
raise Exception("Didn't face any faces, try another image!")
|
19 |
if len(bounding_boxes) > 1:
|
20 |
raise Exception("Found more than one face, try a profile picture with only one person in it!")
|
21 |
|
|
|
15 |
def pipeline(img):
|
16 |
bounding_boxes, landmarks = detect_faces(img)
|
17 |
if len(bounding_boxes) == 0:
|
18 |
+
raise Exception("Didn't find face any faces, try another image!")
|
19 |
if len(bounding_boxes) > 1:
|
20 |
raise Exception("Found more than one face, try a profile picture with only one person in it!")
|
21 |
|