Spaces:
Running
Running
Update components.py
Browse files- components.py +2 -2
components.py
CHANGED
@@ -5,8 +5,8 @@ def create_filter_controls():
|
|
5 |
controls = {}
|
6 |
for filter_name in registry.filters:
|
7 |
params = registry.params_map.get(filter_name, {})
|
|
|
8 |
with gr.Group(visible=filter_name == "Original") as group:
|
9 |
-
filter_controls_list = []
|
10 |
for param_name, config in params.items():
|
11 |
if config['type'] == int:
|
12 |
slider = gr.Slider(
|
@@ -24,5 +24,5 @@ def create_filter_controls():
|
|
24 |
label=param_name.replace('_', ' ').title()
|
25 |
)
|
26 |
filter_controls_list.append(slider)
|
27 |
-
|
28 |
return controls
|
|
|
5 |
controls = {}
|
6 |
for filter_name in registry.filters:
|
7 |
params = registry.params_map.get(filter_name, {})
|
8 |
+
filter_controls_list = []
|
9 |
with gr.Group(visible=filter_name == "Original") as group:
|
|
|
10 |
for param_name, config in params.items():
|
11 |
if config['type'] == int:
|
12 |
slider = gr.Slider(
|
|
|
24 |
label=param_name.replace('_', ' ').title()
|
25 |
)
|
26 |
filter_controls_list.append(slider)
|
27 |
+
controls[filter_name] = filter_controls_list # Store the list of controls, not the group
|
28 |
return controls
|