From 5f765360a27c49dedaba54f4af9781e03a48732b Mon Sep 17 00:00:00 2001 From: ljleb Date: Fri, 11 Aug 2023 09:36:09 -0400 Subject: [PATCH] fix png info loading (#122) --- scripts/comfyui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/comfyui.py b/scripts/comfyui.py index 90bfe91a..2e77496c 100644 --- a/scripts/comfyui.py +++ b/scripts/comfyui.py @@ -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 }