simondby
commited on
Commit
·
9f53f81
1
Parent(s):
870df88
update
Browse files- .gitignore +2 -1
- modules/utils.py +1 -1
.gitignore
CHANGED
@@ -138,4 +138,5 @@ api_key.txt
|
|
138 |
auth.json
|
139 |
.idea
|
140 |
|
141 |
-
deprecated/
|
|
|
|
138 |
auth.json
|
139 |
.idea
|
140 |
|
141 |
+
deprecated/
|
142 |
+
.vscode
|
modules/utils.py
CHANGED
@@ -253,7 +253,7 @@ def save_file(filename, system, history, chatbot):
|
|
253 |
json_s = {"system": system, "history": history, "chatbot": chatbot}
|
254 |
print(json_s)
|
255 |
with open(os.path.join(HISTORY_DIR, filename), "w", encoding="utf8") as f:
|
256 |
-
json.dump(json_s, f)
|
257 |
elif filename.endswith(".md"):
|
258 |
md_s = f"system: \n- {system} \n"
|
259 |
for data in history:
|
|
|
253 |
json_s = {"system": system, "history": history, "chatbot": chatbot}
|
254 |
print(json_s)
|
255 |
with open(os.path.join(HISTORY_DIR, filename), "w", encoding="utf8") as f:
|
256 |
+
json.dump(json_s, f, ensure_ascii=False)
|
257 |
elif filename.endswith(".md"):
|
258 |
md_s = f"system: \n- {system} \n"
|
259 |
for data in history:
|