diff --git a/aaaaaa/ui.py b/aaaaaa/ui.py index a678d82..2608ee3 100644 --- a/aaaaaa/ui.py +++ b/aaaaaa/ui.py @@ -82,7 +82,7 @@ def on_widget_change(state: dict, value: Any, *, attr: str): def on_generate_click(state: dict, *values: Any): for attr, value in zip(ALL_ARGS.attrs, values): - state[attr] = value + state[attr] = value # noqa: PERF403 state["is_api"] = () return state diff --git a/controlnet_ext/common.py b/controlnet_ext/common.py index b78dbf3..a9e0e97 100644 --- a/controlnet_ext/common.py +++ b/controlnet_ext/common.py @@ -8,4 +8,4 @@ cn_model_module = { "tile": "tile_resample", "depth": "depth_midas", } -cn_model_regex = re.compile("|".join(cn_model_module.keys()), flags=re.I) +cn_model_regex = re.compile("|".join(cn_model_module.keys()), flags=re.IGNORECASE)