Spaces:
Sleeping
Sleeping
Update users_management.py
Browse files- users_management.py +3 -1
users_management.py
CHANGED
@@ -86,4 +86,6 @@ def auth_user(username, password):
|
|
86 |
def logout():
|
87 |
username = 'Guest'
|
88 |
user = users.get(username)
|
89 |
-
return user, f"## Hi {username}!", gr.update(choices=user['history']['prompts']), gr.update(choices=user['history']['keywords'])
|
|
|
|
|
|
86 |
def logout():
|
87 |
username = 'Guest'
|
88 |
user = users.get(username)
|
89 |
+
return user, f"## Hi {username}!", gr.update(choices=user['history']['prompts']), gr.update(choices=user['history']['keywords'])
|
90 |
+
|
91 |
+
users = load_from_json()
|