Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ scheduler = CommitScheduler(
|
|
32 |
def save_json(role: str, content: str) -> None:
|
33 |
with scheduler.lock:
|
34 |
with JSON_DATASET_PATH.open("a") as f:
|
35 |
-
json.dump({"role": role, "content": content, "datetime": datetime.now().isoformat()}, f)
|
36 |
f.write("\n")
|
37 |
|
38 |
|
|
|
32 |
def save_json(role: str, content: str) -> None:
|
33 |
with scheduler.lock:
|
34 |
with JSON_DATASET_PATH.open("a") as f:
|
35 |
+
json.dump({"role": role, "content": content, "datetime": datetime.now().isoformat()}, f, ensure_ascii=False)
|
36 |
f.write("\n")
|
37 |
|
38 |
|