Spaces:
Running
Running
Download src/services/api/connection_docs.py from Leon4gr45/brain: direct link, hf CLI and curl.
- Browser
- Download file 678 Bytes
-
https://huggingface.co/spaces/Leon4gr45/brain/resolve/main/src/services/api/connection_docs.py
- Command line
-
hf download hf://spaces/Leon4gr45/brain/src/services/api/connection_docs.py
-
curl -L -o connection_docs.py https://huggingface.co/spaces/Leon4gr45/brain/resolve/main/src/services/api/connection_docs.py
678 Bytes
| """Public connection instructions shared by browsers and automation.""" | |
| from pathlib import Path | |
| from fastapi import APIRouter | |
| from fastapi.responses import FileResponse | |
| connection_docs_router = APIRouter() | |
| CONNECTION_GUIDE = Path(__file__).resolve().parents[3] / "CONNECTION.md" | |
| async def connection_guide(): | |
| return FileResponse( | |
| CONNECTION_GUIDE, | |
| media_type="text/plain; charset=utf-8", | |
| filename="CONNECTION.md", | |
| content_disposition_type="inline", | |
| headers={"X-Content-Type-Options": "nosniff", "Cache-Control": "no-cache"}, | |
| ) | |