From d042bb049275bf6d30b2900fa45248bb247e2e7b Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Fri, 23 Feb 2024 09:52:24 -0800 Subject: [PATCH] add elem id back to the enabled box for #75 --- scripts/dynamic_thresholding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dynamic_thresholding.py b/scripts/dynamic_thresholding.py index 082fe46..60a96b2 100644 --- a/scripts/dynamic_thresholding.py +++ b/scripts/dynamic_thresholding.py @@ -48,7 +48,7 @@ class Script(scripts.Script): dfalse = gr.Checkbox(value=False, visible=False) with gr.Accordion("Dynamic Thresholding (CFG Scale Fix)", open=False, elem_id="dynthres_" + ("img2img" if is_img2img else "txt2img")): with gr.Row(): - enabled = gr.Checkbox(value=False, label="Enable Dynamic Thresholding (CFG Scale Fix)", elem_classes=["dynthres-enabled"]) + enabled = gr.Checkbox(value=False, label="Enable Dynamic Thresholding (CFG Scale Fix)", elem_classes=["dynthres-enabled"], elem_id='dynthres_enabled') with gr.Group(visible=False) as accordion: gr.HTML(value=f"View the wiki for usage tips.

", elem_id='dynthres_wiki_link') mimic_scale = gr.Slider(minimum=1.0, maximum=30.0, step=0.5, label='Mimic CFG Scale', value=7.0, elem_id='dynthres_mimic_scale')