Update 'face_recognition/app/app.py'
This commit is contained in:
parent
9baff19e2b
commit
6acf3a99fa
@ -25,10 +25,9 @@ def new_user_id():
|
|||||||
if check_id(id) == False:
|
if check_id(id) == False:
|
||||||
break
|
break
|
||||||
demo_object = ['test']
|
demo_object = ['test']
|
||||||
with open('/tmp/demo_object.temp', 'wb') as f:
|
with open('/tmp/demo_object.pkl', 'wb') as f:
|
||||||
pickle.dump(demo_object, f)
|
pickle.dump(demo_object, f)
|
||||||
with open('/tmp/demo_object.temp', 'rb') as demo_object:
|
(minioClient.fput_object('users', str(id), '/tmp/demo_object.pkl')
|
||||||
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