Update 'face_recognition/app/app.py'
This commit is contained in:
parent
503770351f
commit
dfaa7fb034
@ -1,4 +1,4 @@
|
||||
from flask import Flask, request
|
||||
from flask import Flask, request, jsonify
|
||||
from minio import Minio
|
||||
from minio.error import (ResponseError, BucketAlreadyOwnedByYou, BucketAlreadyExists)
|
||||
import os
|
||||
@ -35,7 +35,7 @@ def new_user_id():
|
||||
with open('/tmp/demo_object.pkl', 'wb') as f:
|
||||
pickle.dump(demo_object, f)
|
||||
minioClient.fput_object('users', str(id), '/tmp/demo_object.pkl')
|
||||
return(id)
|
||||
return(jsonify({'id':id}))
|
||||
|
||||
@app.route('/init_face')
|
||||
#call like https://face.sguba.de/init_face?id=123&encoded_string=abc
|
||||
|
Loading…
Reference in New Issue
Block a user