Update 'face_recognition/app/app.py'
This commit is contained in:
parent
5645d64107
commit
96ddc93107
@ -48,7 +48,7 @@ def new_face():
|
||||
face_encoding_response = encode_face(temporary_img_path)
|
||||
if face_encoding_response['success']==True:
|
||||
with open(temporary_pkl_path, 'wb') as file:
|
||||
pickle.dump(face_encoding, file)
|
||||
pickle.dump(face_encoding_response['encoding'], file)
|
||||
minioClient.fput_object('users', str(id), temporary_pkl_path)
|
||||
return jsonify({'success':face_encoding_response['success']})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user