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
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 4 additions and 2 deletions

View File

@ -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