Update 'face_recognition/app/app.py'
This commit is contained in:
parent
0581a33d4f
commit
c8eebcd133
@ -3,6 +3,7 @@ from minio import Minio
|
||||
from minio.error import (ResponseError, BucketAlreadyOwnedByYou, BucketAlreadyExists)
|
||||
import os
|
||||
import uuid
|
||||
import pickle
|
||||
app = Flask(__name__)
|
||||
minioClient = Minio('minio:9000', access_key=os.environ['s3-name'], secret_key=os.environ['s3-password'], secure=False)
|
||||
|
||||
@ -23,6 +24,8 @@ def new_user_id():
|
||||
id = str(uuid.uuid4())
|
||||
if check_id(id) == False:
|
||||
break
|
||||
demo_object = ['test']
|
||||
client.put_object('users', str(id), demo_object, os.stat('demo_object').st_size)
|
||||
#funktionalität implementieres s3 Platzhalterdatei anlegen für user,
|
||||
return(id)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user