Spaces:
Sleeping
Sleeping
Download app/api/ui.py from pardeep-singh/reading-list: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/pardeep-singh/reading-list/resolve/main/app/api/ui.py
- Command line
-
hf download hf://spaces/pardeep-singh/reading-list/app/api/ui.py
-
curl -L -o ui.py https://huggingface.co/spaces/pardeep-singh/reading-list/resolve/main/app/api/ui.py
333 Bytes
| from pathlib import Path | |
| from fastapi import APIRouter | |
| from fastapi.responses import FileResponse | |
| router = APIRouter() | |
| INDEX_HTML = Path(__file__).resolve().parent.parent / "static" / "index.html" | |
| def index() -> FileResponse: | |
| return FileResponse(INDEX_HTML, media_type="text/html") | |