Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -39,7 +39,7 @@ def new_user_id():
 | 
				
			|||||||
def new_face():
 | 
					def new_face():
 | 
				
			||||||
    id  = request.args.get('id', None)
 | 
					    id  = request.args.get('id', None)
 | 
				
			||||||
    img = request.args.get('encoded_string', None)
 | 
					    img = request.args.get('encoded_string', None)
 | 
				
			||||||
    print(img)
 | 
					    print(img, flush=True)
 | 
				
			||||||
    imgdata = base64.b64decode(img)
 | 
					    imgdata = base64.b64decode(img)
 | 
				
			||||||
    with open('/tmp/'+str(id), 'wb') as file:
 | 
					    with open('/tmp/'+str(id), 'wb') as file:
 | 
				
			||||||
        file.write(imgdata)
 | 
					        file.write(imgdata)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user