diff --git a/face_recognition/app/app.py b/face_recognition/app/app.py index 71d15fb..bc3ef24 100644 --- a/face_recognition/app/app.py +++ b/face_recognition/app/app.py @@ -66,6 +66,8 @@ def check_face(): with open(temporary_pkl_path, 'rb') as file: face_encoding = pickle.load(file) face_encoding_response['result'] = str(face_recognition.compare_faces([face_encoding], face_encoding_response['encoding'])[0]) + else: + face_encoding_response['result'] = str(False) return jsonify({'result':face_encoding_response['result'],'success':face_encoding_response['success']})