assistanttttttt commited on
Commit
a9bc294
·
1 Parent(s): 79f478b

Align Txt2Img layout with Img2Img: wrap base params and gallery in Row/Column

Browse files
Files changed (1) hide show
  1. ui/shared/txt2img_ui.py +5 -2
ui/shared/txt2img_ui.py CHANGED
@@ -38,8 +38,11 @@ def create_ui():
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))
 
38
 
39
  # Base parameters and result gallery
40
  param_defaults = {'w': 1024, 'h': 1024, 'cs_vis': False, 'cs_val': 1}
41
+ with gr.Row():
42
+ with gr.Column():
43
+ components.update(create_base_parameter_ui(prefix, param_defaults))
44
+ with gr.Column():
45
+ components[f'result_{prefix}'] = gr.Gallery(label="Result", show_label=False, columns=2, object_fit="contain", height=627)
46
 
47
 
48
  components.update(create_lora_settings_ui(prefix))