Download backend/api/api.py from GerardCB/perch: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/GerardCB/perch/resolve/main/backend/api/api.py
- Command line
-
hf download hf://spaces/GerardCB/perch/backend/api/api.py
-
curl -L -o api.py https://huggingface.co/spaces/GerardCB/perch/resolve/main/backend/api/api.py
357 Bytes
| from fastapi import APIRouter | |
| from backend.api.endpoints import chat, catalog, user_layers | |
| api_router = APIRouter() | |
| api_router.include_router(chat.router, prefix="/chat", tags=["chat"]) | |
| api_router.include_router(catalog.router, prefix="/catalog", tags=["catalog"]) | |
| api_router.include_router(user_layers.router, prefix="/layers/user", tags=["user_layers"]) | |