Spaces:
Sleeping
Sleeping
Download app/core/template.py from smartjaac/backoffice: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/spaces/smartjaac/backoffice/resolve/main/app/core/template.py
- Command line
-
hf download hf://spaces/smartjaac/backoffice/app/core/template.py
-
curl -L -o template.py https://huggingface.co/spaces/smartjaac/backoffice/resolve/main/app/core/template.py
251 Bytes
| class Template: | |
| def read(file_name): | |
| with open(f"template/{file_name}", 'r') as file: | |
| template = file.read() | |
| template = template.replace("{{", "{{{{").replace("}}", "}}}}") | |
| return template | |