Spaces:
Runtime error
Runtime error
Commit
•
ba3d60d
1
Parent(s):
665a6a8
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def check_image_similarity(main_image_folder, compare_image_folder):
|
|
42 |
try:
|
43 |
result = face_similarity(convert_pil_to_open_cv(main_image["pil"]), convert_pil_to_open_cv(compare_image["pil"]), compare_image_folder)
|
44 |
except Exception as e:
|
45 |
-
print("Error on execution:
|
46 |
finally:
|
47 |
if not result:
|
48 |
result = {"is_same": "false", "accuracy": 0, "error": "true", "compare_image": compare_image_folder}
|
|
|
42 |
try:
|
43 |
result = face_similarity(convert_pil_to_open_cv(main_image["pil"]), convert_pil_to_open_cv(compare_image["pil"]), compare_image_folder)
|
44 |
except Exception as e:
|
45 |
+
print("Error on execution: ", e)
|
46 |
finally:
|
47 |
if not result:
|
48 |
result = {"is_same": "false", "accuracy": 0, "error": "true", "compare_image": compare_image_folder}
|