Skip to content

Commit

Permalink
Use UTF-8 when loading JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr committed Jul 1, 2024
1 parent f221cd3 commit 8bf6e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def create_comfyui_nodes_from_schemas(schemas_dir):
schemas_dir_path = os.path.join(current_path, schemas_dir)
for schema_file in os.listdir(schemas_dir_path):
if schema_file.endswith(".json"):
with open(os.path.join(schemas_dir_path, schema_file), "r") as f:
with open(os.path.join(schemas_dir_path, schema_file), "r", encoding="utf-8") as f:
schema = json.load(f)
node_name, node_class = create_comfyui_node(schema)
nodes[node_name] = node_class
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-replicate"
description = "Run Replicate models in ComfyUI"
version = "1.0.3"
version = "1.0.4"
license = "LICENSE"

[project.urls]
Expand Down

0 comments on commit 8bf6e0b

Please sign in to comment.