code cleanup

This commit is contained in:
Manuel Schmid 2023-12-24 11:53:06 +01:00
parent 7ddd20e7f0
commit 2e23e2b7b1
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
2 changed files with 0 additions and 3 deletions

View File

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

View File

@ -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();}')