From f834779199ff4bec7d79b9825d9bef5700c08821 Mon Sep 17 00:00:00 2001 From: Martynienas Date: Mon, 8 Sep 2025 22:18:09 +0300 Subject: [PATCH] changes to negative promot location --- .gitignore | 1 + webui.py | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5bf633a8..1206dc78 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ user_path_config-deprecated.txt /.coverage* /auth.json .DS_Store +sync_to_run.ps1 diff --git a/webui.py b/webui.py index b8159d85..3eb5aa7b 100644 --- a/webui.py +++ b/webui.py @@ -176,6 +176,12 @@ with shared.gradio_root: if isinstance(default_prompt, str) and default_prompt != '': shared.gradio_root.load(lambda: default_prompt, outputs=prompt) + # Move negative prompt next to the positive prompt for easier access + negative_prompt = gr.Textbox(label='Negative Prompt', show_label=True, placeholder="Type prompt here.", + info='Describing what you do not want to see.', lines=2, + elem_id='negative_prompt', + value=modules.config.default_prompt_negative) + with gr.Column(scale=3, min_width=0): generate_button = gr.Button(label="Generate", value="Generate", elem_classes='type_row', elem_id='generate_button', visible=True) reset_button = gr.Button(label="Reconnect", value="Reconnect", elem_classes='type_row', elem_id='reset_button', visible=False) @@ -584,10 +590,7 @@ with shared.gradio_root: choices=flags.OutputFormat.list(), value=modules.config.default_output_format) - negative_prompt = gr.Textbox(label='Negative Prompt', show_label=True, placeholder="Type prompt here.", - info='Describing what you do not want to see.', lines=2, - elem_id='negative_prompt', - value=modules.config.default_prompt_negative) + # negative_prompt moved to main prompt area under the positive prompt seed_random = gr.Checkbox(label='Random', value=True) image_seed = gr.Textbox(label='Seed', value=0, max_lines=1, visible=False) # workaround for https://github.com/gradio-app/gradio/issues/5354