psyche commited on
Commit
9e1c46f
·
verified ·
1 Parent(s): bc679cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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