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 os
|
||||||
import uuid
|
import uuid
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
minioClient = Minio('minio:9000', access_key=os.environ['s3-name'], secret_key=os.environ['s3-password'], secure=False)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def hello_docker():
|
def hello_docker():
|
||||||
@ -38,7 +39,6 @@ def check_id(id):
|
|||||||
return known
|
return known
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
minioClient = Minio('minio:9000', access_key=os.environ['s3-name'], secret_key=os.environ['s3-password'], secure=False)
|
|
||||||
try:
|
try:
|
||||||
minioClient.make_bucket("users")
|
minioClient.make_bucket("users")
|
||||||
except BucketAlreadyOwnedByYou as err:
|
except BucketAlreadyOwnedByYou as err:
|
||||||
|
Loading…
Reference in New Issue
Block a user