From 344ba3d978bae97c3488550bf141a420aabbaeb9 Mon Sep 17 00:00:00 2001 From: fabrice Date: Sun, 23 Jun 2019 16:57:04 +0000 Subject: [PATCH] Update 'face_recognition/app/app.py' --- face_recognition/app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/face_recognition/app/app.py b/face_recognition/app/app.py index 8cd0e5a..c6977d5 100644 --- a/face_recognition/app/app.py +++ b/face_recognition/app/app.py @@ -33,7 +33,7 @@ def new_user_id(): minioClient.fput_object('users', str(id), '/tmp/demo_object.pkl') return(id) -@app.route('/init_face', methods=["POST"]) +@app.route('/init_face') #call like https://face.sguba.de/init_face?id=123&encoded_string=abc def new_face(): id = request.args.get('id', None) @@ -48,7 +48,7 @@ def new_face(): minioClient.fput_object('users', str(id), '/tmp/'+str(id)+'.pkl') return str(id) + str(upload_id) -@app.route('/check_face', methods=["POST"]) +@app.route('/check_face') #call like https://face.sguba.de/check_face?id=123&encoded_string=abc def check_face(): id = request.args.get('id', None)