From 58b078f908a6de8b9bc323d0a7491a250850ffe4 Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Wed, 20 Aug 2025 18:06:02 +0100 Subject: [PATCH] Fix modifier class --- workers/comfyui-json/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workers/comfyui-json/client.py b/workers/comfyui-json/client.py index 64289ec..3d28e03 100644 --- a/workers/comfyui-json/client.py +++ b/workers/comfyui-json/client.py @@ -50,7 +50,7 @@ def call_text2image_workflow( payload = { "input": { "request_id": str(uuid.uuid4()), - "modifier": "RawWorkflow", # or whatever your Text2Image modifier is called + "modifier": "Text2Image", "modifications": { "prompt": "a beautiful landscape with mountains and lakes", "width": 1024, @@ -73,7 +73,7 @@ def call_text2image_workflow( verify=get_cert_file_path(), ) response.raise_for_status() - print_truncate_res(str(response.json())) + print(str(response.json())) if __name__ == "__main__": @@ -95,4 +95,4 @@ if __name__ == "__main__": except Exception as e: log.error(f"Error during API call: {e}") else: - log.error(f"Failed to get API key for endpoint {args.endpoint_group_name}") \ No newline at end of file + log.error(f"Failed to get API key for endpoint {args.endpoint_group_name}")