Spaces:
Sleeping
Sleeping
Download models/schemas.py from PauloFN/draft-estimation: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/PauloFN/draft-estimation/resolve/main/models/schemas.py
- Command line
-
hf download hf://spaces/PauloFN/draft-estimation/models/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/PauloFN/draft-estimation/resolve/main/models/schemas.py
493 Bytes
| from pydantic import BaseModel | |
| from datetime import datetime | |
| from typing import Optional | |
| class MeasurementMetadata(BaseModel): | |
| """Schema for the metadata received with the image.""" | |
| ship_id: str | |
| timestamp: datetime | |
| latitude: float | |
| longitude: float | |
| camera_id: Optional[str] = None | |
| class MeasurementResult(BaseModel): | |
| """Schema for the results from the measurement service.""" | |
| draft_measurement: float # The measured draft in meters | |
| confidence_score: float | |