Skip to content

Commit

Permalink
fix png info loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 11, 2023
1 parent e350efe commit 92ac396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/comfyui.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def change_function(serialized_graphs):
if not serialized_graphs:
return gr.Textbox.update(value='')

serialized_graphs = json.loads(serialized_graphs)
workflow_graphs = {
workflow_type.get_ids(xxx2img)[0]: json.loads(serialized_graphs).get(workflow_type.base_id, workflow_type.default_workflow)
workflow_type.get_ids(xxx2img)[0]: serialized_graphs.get(workflow_type.base_id, json.loads(workflow_type.default_workflow))
for workflow_type in workflow_types
}

Expand Down

0 comments on commit 92ac396

Please sign in to comment.