Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def create_app():
|
|
40 |
updates = []
|
41 |
for group_name, group in filter_groups.items():
|
42 |
visibility = (group_name == filter_name)
|
43 |
-
updates.append(
|
44 |
return updates
|
45 |
|
46 |
# Xử lý ảnh real-time
|
@@ -90,4 +90,4 @@ def create_app():
|
|
90 |
|
91 |
if __name__ == "__main__":
|
92 |
app = create_app()
|
93 |
-
app.launch(show_error=True)
|
|
|
40 |
updates = []
|
41 |
for group_name, group in filter_groups.items():
|
42 |
visibility = (group_name == filter_name)
|
43 |
+
updates.append(group.update(visible=visibility)) # Update group visibility
|
44 |
return updates
|
45 |
|
46 |
# Xử lý ảnh real-time
|
|
|
90 |
|
91 |
if __name__ == "__main__":
|
92 |
app = create_app()
|
93 |
+
app.launch(share=True, ssr_mode=True, show_error=True)
|