Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|