generativeai commited on
Commit
665a6a8
1 Parent(s): 4a3fb9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,8 +41,8 @@ def check_image_similarity(main_image_folder, compare_image_folder):
41
 
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:
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}
 
41
 
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: %s", e)
46
  finally:
47
  if not result:
48
  result = {"is_same": "false", "accuracy": 0, "error": "true", "compare_image": compare_image_folder}