mingbaer commited on
Commit
f910d32
·
verified ·
1 Parent(s): 3a7be99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def save_history(history, user_id):
24
  with open(filename, 'w', encoding='utf-8') as f:
25
  json.dump(history, f, ensure_ascii=False, indent=2)
26
 
27
- def load_history(user_id):
28
  filename = get_history_filename(user_id)
29
  if os.path.exists(filename):
30
  with open(filename, 'r', encoding='utf-8') as f:
 
24
  with open(filename, 'w', encoding='utf-8') as f:
25
  json.dump(history, f, ensure_ascii=False, indent=2)
26
 
27
+ def load_history(history, user_id):
28
  filename = get_history_filename(user_id)
29
  if os.path.exists(filename):
30
  with open(filename, 'r', encoding='utf-8') as f: