Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions comfyui_to_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def read_json_file(file_path: str) -> dict:
"""

try:
with open(file_path, 'r') as file:
with open(file_path, 'r', encoding='utf-8') as file:
data = json.load(file)
return data

Expand Down Expand Up @@ -452,9 +452,9 @@ def execute(self):

if __name__ == '__main__':
# Update class parameters here
input_file = 'workflow_api.json'
output_file = 'workflow_api.py'
queue_size = 10
input_file = 'image_text_matting_api.json'
output_file = 'image_text_matting_api.py'
queue_size = 1

# Convert ComfyUI workflow to Python
ComfyUItoPython(input_file=input_file, output_file=output_file, queue_size=queue_size)
Loading