acecalisto3 commited on
Commit
facc85f
·
verified ·
1 Parent(s): d0d7410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1482,10 +1482,8 @@ def _get_builtin_templates(self) -> Dict[str, Template]:
1482
  components=["Slider", "Textbox", "Button", "JSON"],
1483
  metadata={"category": "task_automation"}
1484
  )
1485
- }
1486
- return templates
1487
 
1488
- def load_templates(self):
1489
  """Load all templates from directory"""
1490
  try:
1491
  # Load built-in templates
@@ -1503,12 +1501,14 @@ def _get_builtin_templates(self) -> Dict[str, Template]:
1503
 
1504
  except Exception as e:
1505
  logger.error(f"Error loading templates: {e}")
1506
-
1507
-
1508
-
1509
 
1510
  self.component_index = self._build_component_index()
1511
  self.category_index = self._build_category_index()
 
 
 
 
 
1512
 
1513
  def _build_component_index(self) -> Dict[str, List[str]]:
1514
  """Build index of templates by component"""
 
1482
  components=["Slider", "Textbox", "Button", "JSON"],
1483
  metadata={"category": "task_automation"}
1484
  )
 
 
1485
 
1486
+ def load_templates(self):
1487
  """Load all templates from directory"""
1488
  try:
1489
  # Load built-in templates
 
1501
 
1502
  except Exception as e:
1503
  logger.error(f"Error loading templates: {e}")
 
 
 
1504
 
1505
  self.component_index = self._build_component_index()
1506
  self.category_index = self._build_category_index()
1507
+ }
1508
+ return templates
1509
+
1510
+ self.component_index = self._build_component_index()
1511
+ self.category_index = self._build_category_index()
1512
 
1513
  def _build_component_index(self) -> Dict[str, List[str]]:
1514
  """Build index of templates by component"""