Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ 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(
|
| 63 |
100 * (1 - face_distance))
|
| 64 |
img = face_recognition.load_image_file(filepath)
|
| 65 |
return img, ret
|
|
|
|
| 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(filepath)
|
| 65 |
return img, ret
|