Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -51,6 +51,7 @@ def new_face():
 | 
				
			|||||||
    with open(temporary_pkl_path, 'wb') as file:
 | 
					    with open(temporary_pkl_path, 'wb') as file:
 | 
				
			||||||
        pickle.dump(face_encoding, file)
 | 
					        pickle.dump(face_encoding, file)
 | 
				
			||||||
    minioClient.fput_object('users', str(id), temporary_pkl_path)
 | 
					    minioClient.fput_object('users', str(id), temporary_pkl_path)
 | 
				
			||||||
 | 
					    #return boolean if  setup was succesful
 | 
				
			||||||
    return jsonify({'id':id})
 | 
					    return jsonify({'id':id})
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
@app.route('/check_face')
 | 
					@app.route('/check_face')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user