eienmojiki commited on
Commit
4e37a66
·
verified ·
1 Parent(s): a9d83f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,9 +41,10 @@ def create_app():
41
  updates = []
42
  for group_name, group in filter_groups.items():
43
  visibility = (group_name == filter_name)
44
- updates.append(gr.Group.update(visible=visibility)) # Return list of gr.Group.update objects
45
  return updates
46
 
 
47
  # Xử lý ảnh real-time
48
  def process(*args, **kwargs):
49
  image = args[0] if len(args) > 0 else None
 
41
  updates = []
42
  for group_name, group in filter_groups.items():
43
  visibility = (group_name == filter_name)
44
+ updates.append(gr.update(visible=visibility)) # Changed from gr.Group.update
45
  return updates
46
 
47
+
48
  # Xử lý ảnh real-time
49
  def process(*args, **kwargs):
50
  image = args[0] if len(args) > 0 else None