File size: 564 Bytes
9db766f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
"""Root endpoint for API information"""
from fastapi import APIRouter
router = APIRouter()
@router.get("/", response_model=dict, tags=["General"])
async def root():
"""Root endpoint with API information"""
return {
"message": "NLP Project API",
"version": "1.0.0",
"features": {
"stance_detection": {
"predict": "/predict",
"batch_predict": "/batch-predict"
}
},
"endpoints": {
"health": "/health",
"docs": "/docs"
}
}
|