njgroene commited on
Commit
097721a
1 Parent(s): 928cd0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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