From f3b3705478e7cd5764e26fd45e00ee4ccab73355 Mon Sep 17 00:00:00 2001 From: Kasisnu <5044120+kasisnu@users.noreply.github.com> Date: Thu, 30 May 2024 17:42:53 +0530 Subject: [PATCH] comfy: flip positive/negative prompt orderings for user submitted & hardcoded hints --- workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py b/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py index 22b1365..fc795aa 100644 --- a/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py +++ b/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py @@ -281,9 +281,9 @@ def get_jsonpath_mods(style_mods: Dict[str, Any], mapping_json: Dict[str, Any], # Handling positive and negative prompts if pos_in: - new_mod_json["positive_prompt"] = f"{new_mod_json.get('positive_prompt', '')}, {pos_in}" + new_mod_json["positive_prompt"] = f"{pos_in}, {new_mod_json.get('positive_prompt', '')}" if neg_in: - new_mod_json["negative_prompt"] = f"{new_mod_json.get('negative_prompt', '')}, {neg_in}" + new_mod_json["negative_prompt"] = f"{neg_in}, {new_mod_json.get('negative_prompt', '')}" if pipeline_type in [PipelineType.IPA, PipelineType.BASE]: new_mod_json["denoise_first_pass"] = denoise_first_pass