acecalisto3 commited on
Commit
abd078d
·
verified ·
1 Parent(s): 8634351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1583,13 +1583,13 @@ if __name__ == "__main__":
1583
  demo.launch(share=True)
1584
  except Exception as e:
1585
  logger.error(f"Error running application: {e}")
1586
- def load_templates(self):
 
1587
  """Load all templates from directory"""
1588
  try:
1589
- # Load built-in templates
1590
- self.templates.update(self._get_builtin_templates())
1591
-
1592
- # Load custom templates
1593
  for template_file in self.template_dir.glob("*.json"):
1594
  try:
1595
  with open(template_file, 'r', encoding='utf-8') as f:
 
1583
  demo.launch(share=True)
1584
  except Exception as e:
1585
  logger.error(f"Error running application: {e}")
1586
+
1587
+ def load_templates(self):
1588
  """Load all templates from directory"""
1589
  try:
1590
+ # Load built-in templates
1591
+ self.templates.update(self._get_builtin_templates())
1592
+ # Load custom templates
 
1593
  for template_file in self.template_dir.glob("*.json"):
1594
  try:
1595
  with open(template_file, 'r', encoding='utf-8') as f: