Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ def analyze_images(img1, img2):
|
|
24 |
img2.save(temp_file2, format='JPEG')
|
25 |
img2_path = temp_file2.name
|
26 |
|
27 |
-
# Face comparison with DeepFace
|
28 |
-
face_result = DeepFace.verify(img1_path, img2_path, model_name='VGG-Face')
|
29 |
is_same_person = face_result['verified']
|
30 |
similarity_score = face_result['distance']
|
31 |
|
|
|
24 |
img2.save(temp_file2, format='JPEG')
|
25 |
img2_path = temp_file2.name
|
26 |
|
27 |
+
# Face comparison with DeepFace, enforce_detection set to False
|
28 |
+
face_result = DeepFace.verify(img1_path, img2_path, model_name='VGG-Face', enforce_detection=False)
|
29 |
is_same_person = face_result['verified']
|
30 |
similarity_score = face_result['distance']
|
31 |
|