mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
Fixed encoding in code
This commit is contained in:
parent
973c9a1a21
commit
cdf3162965
2
app.py
2
app.py
@ -530,7 +530,7 @@ try:
|
||||
root_folder = self.lollms_paths.personal_outputs_path/"discussions"/f"d_{discussion_id}"
|
||||
root_folder.mkdir(parents=True,exist_ok=True)
|
||||
tmp_file = root_folder/f"ai_code_{message_id}.py"
|
||||
with open(tmp_file,"w") as f:
|
||||
with open(tmp_file,"w",encoding="utf8") as f:
|
||||
f.write(code)
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user