Download routes/root.py from NLP-Debater-Project/FastAPI-Backend-Models: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/03977cf2bfc04d0dfccc8e34fbf64f89c4d127f7/routes/root.py
- Command line
-
hf download hf://spaces/NLP-Debater-Project/FastAPI-Backend-Models@03977cf2bfc04d0dfccc8e34fbf64f89c4d127f7/routes/root.py
-
curl -L -o root.py https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/03977cf2bfc04d0dfccc8e34fbf64f89c4d127f7/routes/root.py
564 Bytes
| """Root endpoint for API information""" | |
| from fastapi import APIRouter | |
| router = APIRouter() | |
| 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" | |
| } | |
| } | |