Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,10 +33,9 @@ def create_app():
|
|
33 |
# Xử lý cập nhật UI
|
34 |
def update_controls(filter_name):
|
35 |
updates = []
|
36 |
-
for
|
37 |
-
visibility =
|
38 |
-
|
39 |
-
updates.append(gr.update(visible=visibility)) # Update visibility for each control
|
40 |
return updates
|
41 |
|
42 |
# Xử lý ảnh real-time
|
|
|
33 |
# Xử lý cập nhật UI
|
34 |
def update_controls(filter_name):
|
35 |
updates = []
|
36 |
+
for filter_ctrl_name, ctrl_group in controls.items(): # controls now stores groups
|
37 |
+
visibility = True # Always make visible
|
38 |
+
updates.append(gr.update(visible=visibility)) # Update visibility of the group
|
|
|
39 |
return updates
|
40 |
|
41 |
# Xử lý ảnh real-time
|