nickmuchi commited on
Commit
ef900d4
1 Parent(s): 6ce45a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def facial_analysis(img1, detector):
43
 
44
  print(obj)
45
 
46
- return obj[0],obj[1],obj[2],obj[3]
47
 
48
  def face_recognition(img1,dir_loc,model,dist,detector):
49
  """Facial recognition given a database or folder location with images"""
 
43
 
44
  print(obj)
45
 
46
+ return obj[0]['age'],obj[0]['dominant_gender'],obj[0]['dominant_race'],obj[0]['dominant_emotion']
47
 
48
  def face_recognition(img1,dir_loc,model,dist,detector):
49
  """Facial recognition given a database or folder location with images"""