Update 'face_recognition/app/app.py'
start commenting code
This commit is contained in:
parent
09a24ce442
commit
ffc345aaab
@ -21,11 +21,11 @@ def hello_docker():
|
|||||||
def access_minio():
|
def access_minio():
|
||||||
for bucket in minioClient.list_buckets():
|
for bucket in minioClient.list_buckets():
|
||||||
print(bucket.name, bucket.creation_date, flush=True)
|
print(bucket.name, bucket.creation_date, flush=True)
|
||||||
return('Connection Succesfull')
|
return 'Connection Succesfull'
|
||||||
|
|
||||||
@app.route('/new_user_id')
|
@app.route('/new_user_id')
|
||||||
def new_user_id():
|
def new_user_id():
|
||||||
#demo objekt speichern um id zu 'speichern'. Später mit if (type(object)==list oä überschreiben mit face_encoding.pkl
|
#save demo object to reserve id in minio
|
||||||
id = None
|
id = None
|
||||||
for limited_try in range(0,5):
|
for limited_try in range(0,5):
|
||||||
id = str(uuid.uuid4())
|
id = str(uuid.uuid4())
|
||||||
|
Loading…
Reference in New Issue
Block a user