diff --git a/gooey_ui/components.py b/gooey_ui/components.py index d9f7bdbfa..800f59297 100644 --- a/gooey_ui/components.py +++ b/gooey_ui/components.py @@ -662,7 +662,6 @@ def custom_radio( *, disabled: bool = False, label_visibility: LabelVisibility = "visible", - custom: dict, ) -> T | None: if not key: key = md5_values("custom_radio", label, options, help, label_visibility) @@ -677,6 +676,17 @@ def custom_radio( validate_value=False, ) is_custom = value not in options + custom = { + "label": "Custom", + "input": lambda label, key: number_input( + label=label, + min_value=1, + max_value=60, + step=1, + key=key, + style={"margin-top": "-28px"}, + ), + } with div(className="d-flex", style={"gap": "1ch", "flex-direction": "row-reverse"}): with div(className="flex-grow-1"): state.session_state.setdefault(f"custom-{key}", value) diff --git a/recipes/DeforumSD.py b/recipes/DeforumSD.py index 02fa02360..d85e80929 100644 --- a/recipes/DeforumSD.py +++ b/recipes/DeforumSD.py @@ -337,17 +337,6 @@ def render_settings(self): "24": "Film: 24 FPS", }[str(x)], key="fps", - custom={ - "label": "Custom", - "input": lambda label, key: st.number_input( - label=label, - min_value=1, - max_value=60, - step=1, - key=key, - style={"margin-top": "-28px"}, - ), - }, ) # st.selectbox(