KShoichi's picture
Upload app/api/docs.py with huggingface_hub
ae7c3e0 verified
from fastapi import APIRouter
from fastapi.responses import JSONResponse
router = APIRouter()
@router.get("/openapi.json")
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."})