fix: issue saving differences across platforms

This commit is contained in:
hayden
2024-11-06 15:39:06 +08:00
parent 288f026d47
commit 153dbc0788
3 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ def get_model_info(model_path: str):
description_file = utils.join_path(directory, description_file)
description = None
if os.path.isfile(description_file):
with open(description_file, "r", encoding="utf-8") as f:
with open(description_file, "r", encoding="utf-8", newline="") as f:
description = f.read()
return {