Compact options UI for Prompt Matrix
This commit is contained in:
parent
edabd92729
commit
5997457fd4
@ -47,13 +47,20 @@ class Script(scripts.Script):
|
|||||||
return "Prompt matrix"
|
return "Prompt matrix"
|
||||||
|
|
||||||
def ui(self, is_img2img):
|
def ui(self, is_img2img):
|
||||||
|
gr.HTML('<br />')
|
||||||
|
with gr.Row():
|
||||||
|
with gr.Column():
|
||||||
put_at_start = gr.Checkbox(label='Put variable parts at start of prompt',
|
put_at_start = gr.Checkbox(label='Put variable parts at start of prompt',
|
||||||
value=False, elem_id=self.elem_id("put_at_start"))
|
value=False, elem_id=self.elem_id("put_at_start"))
|
||||||
different_seeds = gr.Checkbox(
|
with gr.Column():
|
||||||
label='Use different seed for each picture', value=False, elem_id=self.elem_id("different_seeds"))
|
|
||||||
# Radio buttons for selecting the prompt between positive and negative
|
# Radio buttons for selecting the prompt between positive and negative
|
||||||
prompt_type = gr.Radio(["positive", "negative"], label="Select prompt",
|
prompt_type = gr.Radio(["positive", "negative"], label="Select prompt",
|
||||||
elem_id=self.elem_id("prompt_type"), value="positive")
|
elem_id=self.elem_id("prompt_type"), value="positive")
|
||||||
|
with gr.Row():
|
||||||
|
with gr.Column():
|
||||||
|
different_seeds = gr.Checkbox(
|
||||||
|
label='Use different seed for each picture', value=False, elem_id=self.elem_id("different_seeds"))
|
||||||
|
with gr.Column():
|
||||||
# Radio buttons for selecting the delimiter to use in the resulting prompt
|
# Radio buttons for selecting the delimiter to use in the resulting prompt
|
||||||
variations_delimiter = gr.Radio(["comma", "space"], label="Select delimiter", elem_id=self.elem_id(
|
variations_delimiter = gr.Radio(["comma", "space"], label="Select delimiter", elem_id=self.elem_id(
|
||||||
"variations_delimiter"), value="comma")
|
"variations_delimiter"), value="comma")
|
||||||
|
Loading…
Reference in New Issue
Block a user