Download app/admin/template_loader.py from bg5/z: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/bg5/z/resolve/main/app/admin/template_loader.py
- Command line
-
hf download hf://spaces/bg5/z/app/admin/template_loader.py
-
curl -L -o template_loader.py https://huggingface.co/spaces/bg5/z/resolve/main/app/admin/template_loader.py
209 Bytes
| from pathlib import Path | |
| from fastapi.templating import Jinja2Templates | |
| TEMPLATES_DIR = Path(__file__).resolve().parent.parent / "templates" | |
| templates = Jinja2Templates(directory=str(TEMPLATES_DIR)) | |