acecalisto3 commited on
Commit
1df7fac
·
verified ·
1 Parent(s): 1c8ce1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1596,12 +1596,11 @@ if __name__ == "__main__":
1596
  template_data = json.load(f)
1597
  name = template_file.stem
1598
  self.templates[name] = Template(**template_data)
1599
- except Exception as e:
1600
- logger.error(f"Error loading templates: {e}")
1601
 
1602
- self.component_index = self._build_component_index()
1603
- self.category_index = self._build_category_index()
1604
-
1605
  return templates
1606
 
1607
  self.component_index = self._build_component_index()
 
1596
  template_data = json.load(f)
1597
  name = template_file.stem
1598
  self.templates[name] = Template(**template_data)
1599
+ except Exception as e:
1600
+ logger.error(f"Error loading templates: {e}")
1601
 
1602
+ self.component_index = self._build_component_index()
1603
+ self.category_index = self._build_category_index()
 
1604
  return templates
1605
 
1606
  self.component_index = self._build_component_index()