Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1587,9 +1587,9 @@ if __name__ == "__main__":
|
|
1587 |
def load_templates(self):
|
1588 |
"""Load all templates from directory"""
|
1589 |
try:
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
for template_file in self.template_dir.glob("*.json"):
|
1594 |
try:
|
1595 |
with open(template_file, 'r', encoding='utf-8') as f:
|
|
|
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:
|