YchKhan commited on
Commit
63083df
1 Parent(s): c38ec33

Update users_management.py

Browse files
Files changed (1) hide show
  1. users_management.py +3 -1
users_management.py CHANGED
@@ -2,7 +2,6 @@ import json
2
  import os
3
  from hashlib import sha256
4
 
5
- users = load_from_json()
6
 
7
  def save_user_data_to_json(username, file_path='users.json'):
8
  user = users[username]
@@ -93,3 +92,6 @@ def logout():
93
  username = 'Guest'
94
  user = users.get(username)
95
  return user, f"## Hi {username}!", gr.update(choices=user['history']['prompts']), gr.update(choices=user['history']['keywords'])
 
 
 
 
2
  import os
3
  from hashlib import sha256
4
 
 
5
 
6
  def save_user_data_to_json(username, file_path='users.json'):
7
  user = users[username]
 
92
  username = 'Guest'
93
  user = users.get(username)
94
  return user, f"## Hi {username}!", gr.update(choices=user['history']['prompts']), gr.update(choices=user['history']['keywords'])
95
+
96
+
97
+ users = load_from_json()