Update 'face_recognition/app/app.py'
This commit is contained in:
parent
d97d712d76
commit
5d19c0d82b
@ -25,8 +25,10 @@ def new_user_id():
|
|||||||
if check_id(id) == False:
|
if check_id(id) == False:
|
||||||
break
|
break
|
||||||
demo_object = ['test']
|
demo_object = ['test']
|
||||||
demo_object = pickle.dumps(demo_object)
|
with open('demo_object.temp', 'wb') as f:
|
||||||
minioClient.put_object('users', str(id), demo_object, os.stat('demo_object').st_size)
|
pickle.dump(demo_object, f)
|
||||||
|
with open('demo_object.temp', 'rb') as demo_object:
|
||||||
|
minioClient.put_object('users', str(id), demo_object, os.stat('demo_object').st_size)
|
||||||
#funktionalität implementieres s3 Platzhalterdatei anlegen für user,
|
#funktionalität implementieres s3 Platzhalterdatei anlegen für user,
|
||||||
return(id)
|
return(id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user