Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-11 09:44:32 +00:00
parent 0f881ee5cc
commit 0581a33d4f

View File

@ -4,6 +4,7 @@ from minio.error import (ResponseError, BucketAlreadyOwnedByYou, BucketAlreadyEx
import os
import uuid
app = Flask(__name__)
minioClient = Minio('minio:9000', access_key=os.environ['s3-name'], secret_key=os.environ['s3-password'], secure=False)
@app.route('/')
def hello_docker():
@ -38,7 +39,6 @@ def check_id(id):
return known
def setup():
minioClient = Minio('minio:9000', access_key=os.environ['s3-name'], secret_key=os.environ['s3-password'], secure=False)
try:
minioClient.make_bucket("users")
except BucketAlreadyOwnedByYou as err: