feat: enable edit attention with ctrl + arrow keys for enhance prompts

This commit is contained in:
Manuel Schmid
2024-06-18 22:39:09 +02:00
parent 6cb0b2143b
commit c0397bddbd
+4 -2
View File
@@ -352,9 +352,11 @@ with shared.gradio_root:
show_progress=False, queue=False) show_progress=False, queue=False)
enhance_prompt = gr.Textbox(label="Enhancement positive prompt", 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", 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): with gr.Accordion("Detection", open=False):
# TODO check if limiting to SAM is better # TODO check if limiting to SAM is better