Commit ·
79f478b
1
Parent(s): 267790e
Adjust Txt2Img layout: wrap prompts in Row/Column and restore result gallery
Browse files- ui/shared/txt2img_ui.py +5 -3
ui/shared/txt2img_ui.py
CHANGED
|
@@ -30,14 +30,16 @@ def create_ui():
|
|
| 30 |
)
|
| 31 |
components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
# Base parameters and result gallery
|
| 37 |
param_defaults = {'w': 1024, 'h': 1024, 'cs_vis': False, 'cs_val': 1}
|
| 38 |
components.update(create_base_parameter_ui(prefix, param_defaults))
|
| 39 |
components[f'result_{prefix}'] = gr.Gallery(label="Result", show_label=False, columns=2, object_fit="contain", height=627)
|
| 40 |
-
|
| 41 |
|
| 42 |
|
| 43 |
components.update(create_lora_settings_ui(prefix))
|
|
|
|
| 30 |
)
|
| 31 |
components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
|
| 32 |
|
| 33 |
+
# Prompt fields
|
| 34 |
+
with gr.Row():
|
| 35 |
+
with gr.Column():
|
| 36 |
+
components[f'prompt_{prefix}'] = gr.Text(label="Prompt", lines=3)
|
| 37 |
+
components[f'neg_prompt_{prefix}'] = gr.Text(label="Negative prompt", lines=3)
|
| 38 |
|
| 39 |
# Base parameters and result gallery
|
| 40 |
param_defaults = {'w': 1024, 'h': 1024, 'cs_vis': False, 'cs_val': 1}
|
| 41 |
components.update(create_base_parameter_ui(prefix, param_defaults))
|
| 42 |
components[f'result_{prefix}'] = gr.Gallery(label="Result", show_label=False, columns=2, object_fit="contain", height=627)
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
components.update(create_lora_settings_ui(prefix))
|