nickmuchi commited on
Commit
aaf727c
1 Parent(s): 009dd02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def face_verification(img1, img2, dist,model,detector):
29
  result = DeepFace.verify(img1_path=img1,img2_path=img2,distance_metric=dist,model_name=model,detector_backend=detector,\
30
  enforce_detection=False)
31
 
32
- return result['verified'],round(result['distance'],2),result['threshold'],result['model'],result['similarity_metric']
33
 
34
  def facial_analysis(img1, detector):
35
  """Determine emotion, race, gender and age from models"""
 
29
  result = DeepFace.verify(img1_path=img1,img2_path=img2,distance_metric=dist,model_name=model,detector_backend=detector,\
30
  enforce_detection=False)
31
 
32
+ return result['verified'].astype(str),round(result['distance'],2),result['threshold'],result['model'],result['similarity_metric']
33
 
34
  def facial_analysis(img1, detector):
35
  """Determine emotion, race, gender and age from models"""