Spaces:
Runtime error
Runtime error
Update app.py
#1
by
acecalisto3
- opened
app.py
CHANGED
|
@@ -1597,9 +1597,9 @@ if __name__ == "__main__":
|
|
| 1597 |
name = template_file.stem
|
| 1598 |
self.templates[name] = Template(**template_data)
|
| 1599 |
except Exception as e:
|
| 1600 |
-
|
| 1601 |
-
|
| 1602 |
-
|
| 1603 |
return templates
|
| 1604 |
|
| 1605 |
|
|
|
|
| 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 |
+
self.component_index = self._build_component_index()
|
| 1602 |
+
self.category_index = self._build_category_index()
|
| 1603 |
return templates
|
| 1604 |
|
| 1605 |
|