code cleanup
This commit is contained in:
parent
7ddd20e7f0
commit
2e23e2b7b1
|
|
@ -161,10 +161,8 @@ def parse_meta_from_preset(preset_content):
|
|||
width, height = default_aspect_ratio.split('*')
|
||||
else:
|
||||
default_aspect_ratio = getattr(modules.config, settings_key)
|
||||
print(default_aspect_ratio)
|
||||
width, height = default_aspect_ratio.split('×')
|
||||
height = height[:height.index(" ")]
|
||||
print(default_aspect_ratio)
|
||||
preset_prepared[meta_key] = (width, height)
|
||||
else:
|
||||
preset_prepared[meta_key] = items[settings_key] if settings_key in items and items[settings_key] is not None else getattr(modules.config, settings_key)
|
||||
|
|
|
|||
1
webui.py
1
webui.py
|
|
@ -492,7 +492,6 @@ with shared.gradio_root:
|
|||
generate_button,
|
||||
load_parameter_button
|
||||
] + lora_ctrls, queue=False, show_progress=False) \
|
||||
.then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \
|
||||
.then(fn=style_sorter.sort_styles, inputs=style_selections, outputs=style_selections, queue=False, show_progress=False) \
|
||||
.then(lambda: None, _js='()=>{refresh_style_localization();}')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue