npc0 commited on
Commit
fc9bb68
·
1 Parent(s): 662c339

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -59,8 +59,9 @@ def greet(image_to_test):
59
  idx = face_distances.argmin()
60
  filepath = known_persons[idx]
61
  face_distance = face_distances[idx]
62
- ret = "The most similar person is of {} with score {:.3}".format(os.path.splitext(filepath)[0],
63
- 100 * (1 - face_distance))
 
64
  img = face_recognition.load_image_file(os.path.join("data", filepath))
65
  return img, ret
66
 
 
59
  idx = face_distances.argmin()
60
  filepath = known_persons[idx]
61
  face_distance = face_distances[idx]
62
+ ret = "The most similar person is of {} with score {:.3}".format(
63
+ os.path.splitext(filepath)[0],
64
+ 100 * (1 - face_distance))
65
  img = face_recognition.load_image_file(os.path.join("data", filepath))
66
  return img, ret
67