Download app/api/docs.py from KShoichi/hallucination-detector-project: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/KShoichi/hallucination-detector-project/resolve/main/app/api/docs.py
- Command line
-
hf download hf://KShoichi/hallucination-detector-project/app/api/docs.py
-
curl -L -o docs.py https://huggingface.co/KShoichi/hallucination-detector-project/resolve/main/app/api/docs.py
313 Bytes
| from fastapi import APIRouter | |
| from fastapi.responses import JSONResponse | |
| router = APIRouter() | |
| def openapi_schema(): | |
| # FastAPI serves this automatically, but you can customize if needed | |
| return JSONResponse({"info": "See /docs for Swagger UI and /redoc for ReDoc."}) | |