From f221cd3eb4f7a11e79ceb5c567dae208fc214c8d Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 1 Jul 2024 13:18:55 +0000 Subject: [PATCH] Load JSON with UTF-8 --- import_schemas.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/import_schemas.py b/import_schemas.py index 97a4a92..bc562da 100755 --- a/import_schemas.py +++ b/import_schemas.py @@ -25,12 +25,12 @@ def format_json_files_in_directory(directory): format_json_file(file_path) -with open("supported_models.json", "r") as f: +with open("supported_models.json", "r", encoding="utf-8") as f: supported_models = json.load(f) for model in supported_models["models"]: m = replicate.models.get(model) - with open(f"schemas/{model.replace('/', '_')}.json", "w") as f: + with open(f"schemas/{model.replace('/', '_')}.json", "w", encoding="utf-8") as f: f.write(m.json()) schemas_directory = "schemas" diff --git a/pyproject.toml b/pyproject.toml index c36c6cc..eca0346 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-replicate" description = "Run Replicate models in ComfyUI" -version = "1.0.2" +version = "1.0.3" license = "LICENSE" [project.urls]