Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -56,7 +56,7 @@ def check_face():
 | 
				
			|||||||
    minioClient.fget_object('users', str(id), '/tmp/'+str(id))
 | 
					    minioClient.fget_object('users', str(id), '/tmp/'+str(id))
 | 
				
			||||||
    with open('/tmp/'+str(id), 'rb') as file:
 | 
					    with open('/tmp/'+str(id), 'rb') as file:
 | 
				
			||||||
        face2_encoding = pickle.load(file)
 | 
					        face2_encoding = pickle.load(file)
 | 
				
			||||||
    return face_recognition.compare_faces([face_encoding], face2_encoding)
 | 
					    return str(face_recognition.compare_faces([face_encoding], face2_encoding))
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
def check_id(id):
 | 
					def check_id(id):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user