From abba433a9bc1440ec8a508b251b49d034c3ebf42 Mon Sep 17 00:00:00 2001 From: HPPinata <83947761+HPPinata@users.noreply.github.com> Date: Fri, 1 Sep 2023 22:08:15 +0200 Subject: [PATCH] Change order --- paste_this_to_webui_scripts_folder/prompt_gallery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paste_this_to_webui_scripts_folder/prompt_gallery.py b/paste_this_to_webui_scripts_folder/prompt_gallery.py index f759c56..981f319 100644 --- a/paste_this_to_webui_scripts_folder/prompt_gallery.py +++ b/paste_this_to_webui_scripts_folder/prompt_gallery.py @@ -347,9 +347,9 @@ def parse_yaml_dict(rawDict, tag, avatar_prompt, avatar_name, default_negative): params = parse_param(rawDict['param']) parsed_param = True elif key == 'value': - m_positive = value + m_positive + m_positive = m_positive + ', ' + value elif key == 'negative': - m_negative = value +','+ m_negative + m_negative = m_negative + ', ' + value cur += "--{key} \"{value}\" ".format(key='prompt', value= m_positive) cur += "--{key} \"{value}\" ".format(key='negative_prompt', value= m_negative) @@ -460,7 +460,7 @@ def load_prompt(file, default_negative, dropdown, skip_exist): if dropdown == '' or file is None: return rawDict = yaml.load(file, Loader = yaml.BaseLoader) - default_negative = default_negative + ',' + avatar_negatives[avatar_names.index(dropdown)] + default_negative = default_negative + ', ' + avatar_negatives[avatar_names.index(dropdown)] parse_yaml_dict(rawDict, "", avatar_prompts[avatar_names.index(dropdown)], dropdown, default_negative) prompt_txt = "" keys = list(filter(lambda x: x not in EXCLUDED_TAGS, OUTPUTS.keys()))