Load JSON with UTF-8

This commit is contained in:
Paul
2024-07-01 13:18:55 +00:00
parent 2d5129599c
commit f221cd3eb4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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]