Spaces:
Sleeping
Sleeping
Download models/requests.py from Pingul/API-NASA-Space-App-2025: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/spaces/Pingul/API-NASA-Space-App-2025/resolve/main/models/requests.py
- Command line
-
hf download hf://spaces/Pingul/API-NASA-Space-App-2025/models/requests.py
-
curl -L -o requests.py https://huggingface.co/spaces/Pingul/API-NASA-Space-App-2025/resolve/main/models/requests.py
358 Bytes
| from typing import Dict | |
| from pydantic import BaseModel | |
| class PredictRequest(BaseModel): | |
| """Request model for /predict endpoint. | |
| Contains a mapping of feature names to numeric values that the model | |
| will consume. Keep it minimal so imports from `models.requests` | |
| succeed when the app starts. | |
| """ | |
| features: Dict[str, float] |