From c0397bddbdb6ea5427fc4f0362f1488de6fd65aa Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Tue, 18 Jun 2024 22:39:09 +0200 Subject: [PATCH] feat: enable edit attention with ctrl + arrow keys for enhance prompts --- webui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index e7519b6c..d7b89c72 100644 --- a/webui.py +++ b/webui.py @@ -352,9 +352,11 @@ with shared.gradio_root: show_progress=False, queue=False) enhance_prompt = gr.Textbox(label="Enhancement positive prompt", - placeholder="Uses original prompt instead if empty.") + placeholder="Uses original prompt instead if empty.", + elem_id='enhance_prompt') enhance_negative_prompt = gr.Textbox(label="Enhancement negative prompt", - placeholder="Uses original negative prompt instead if empty.") + placeholder="Uses original negative prompt instead if empty.", + elem_id='enhance_negative_prompt') with gr.Accordion("Detection", open=False): # TODO check if limiting to SAM is better