Files
zeavis-edu/apps/ml-service/schemas.py
T

22 lines
386 B
Python
Raw Normal View History

2026-05-22 19:28:43 +00:00
from pydantic import BaseModel
class HealthResponse(BaseModel):
status: str
model_loaded: bool
class MetadataResponse(BaseModel):
service_name: str
service_version: str
model_path: str
model_loaded: bool
input_size: int
labels: list[str]
class PredictionResponse(BaseModel):
label: str
confidence: float
probabilities: dict[str, float]