drsaikirant88 commited on
Commit
38b500c
1 Parent(s): 94858c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -219,7 +219,7 @@ def detect_face(img):
219
  human_face = [idx for idx, val in enumerate(detections) if val[0] == 'Person']
220
 
221
  if len(human_face) == 0:
222
- return None
223
  else:
224
  # Only get human face detections
225
  faces = detect_person_face(img, [detections[idx] for idx in human_face])
 
219
  human_face = [idx for idx, val in enumerate(detections) if val[0] == 'Person']
220
 
221
  if len(human_face) == 0:
222
+ return []
223
  else:
224
  # Only get human face detections
225
  faces = detect_person_face(img, [detections[idx] for idx in human_face])