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