Download models/__init__.py from NLP-Debater-Project/FastAPI-Backend-Models: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/dd55f1d78eb796355926a8e4e61409481d9868f8/models/__init__.py
- Command line
-
hf download hf://spaces/NLP-Debater-Project/FastAPI-Backend-Models@dd55f1d78eb796355926a8e4e61409481d9868f8/models/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/dd55f1d78eb796355926a8e4e61409481d9868f8/models/__init__.py
1.16 kB
| """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, | |
| ) | |
| # Import MCP-related schemas | |
| from .mcp_models import ( | |
| ToolCallRequest, | |
| ToolCallResponse, | |
| ToolInfo, | |
| ToolListResponse, | |
| ResourceInfo, | |
| ResourceListResponse, | |
| ) | |
| __all__ = [ | |
| # Stance schemas | |
| "StanceRequest", | |
| "StanceResponse", | |
| "BatchStanceRequest", | |
| "BatchStanceResponse", | |
| # Label/KPA schemas | |
| "PredictionRequest", | |
| "PredictionResponse", | |
| "BatchPredictionRequest", | |
| "BatchPredictionResponse", | |
| "KPAHealthResponse", | |
| # Health schemas | |
| "HealthResponse", | |
| # MCP schemas | |
| "ToolCallRequest", | |
| "ToolCallResponse", | |
| "ToolInfo", | |
| "ToolListResponse", | |
| "ResourceInfo", | |
| "ResourceListResponse", | |
| ] | |