Yassine Mhirsi
Add label/KPA-related schemas to models and update documentation in label routes
3afc11b Download models/__init__.py from NLP-Debater-Project/FastAPI-Backend-Models: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/28e04dd51fe5e05db4f1f7be239c64d6d8f2a2f9/models/__init__.py
- Command line
-
hf download hf://spaces/NLP-Debater-Project/FastAPI-Backend-Models@28e04dd51fe5e05db4f1f7be239c64d6d8f2a2f9/models/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/28e04dd51fe5e05db4f1f7be239c64d6d8f2a2f9/models/__init__.py
828 Bytes
| """Pydantic models and schemas for request/response validation""" | |
| # Import stance-related schemas | |
| from .stance import ( | |
| StanceRequest, | |
| StanceResponse, | |
| BatchStanceRequest, | |
| BatchStanceResponse, | |
| ) | |
| # Import label/KPA-related schemas | |
| from .label import ( | |
| PredictionRequest, | |
| PredictionResponse, | |
| BatchPredictionRequest, | |
| BatchPredictionResponse, | |
| HealthResponse as KPAHealthResponse, | |
| ) | |
| # Import health-related schemas | |
| from .health import ( | |
| HealthResponse, | |
| ) | |
| __all__ = [ | |
| # Stance schemas | |
| "StanceRequest", | |
| "StanceResponse", | |
| "BatchStanceRequest", | |
| "BatchStanceResponse", | |
| # Label/KPA schemas | |
| "PredictionRequest", | |
| "PredictionResponse", | |
| "BatchPredictionRequest", | |
| "BatchPredictionResponse", | |
| "KPAHealthResponse", | |
| # Health schemas | |
| "HealthResponse", | |
| ] | |