Download app/schemas.py from PhonePixelGhost/Image_Classification_Service: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/spaces/PhonePixelGhost/Image_Classification_Service/resolve/main/app/schemas.py
- Command line
-
hf download hf://spaces/PhonePixelGhost/Image_Classification_Service/app/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/PhonePixelGhost/Image_Classification_Service/resolve/main/app/schemas.py
217 Bytes
| from pydantic import BaseModel | |
| class PredictionResponse(BaseModel): | |
| label: str | |
| score: float | |
| label_id: int | |
| inference_time_ms: float | |
| class ErrorResponse(BaseModel): | |
| detail: str | |
| error_code: str | |