Update 'face_recognition/app/app.py'
This commit is contained in:
parent
0f881ee5cc
commit
0581a33d4f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user