jatinmehra's picture
Enhance API endpoints with batch prediction functionality and improve image validation
cde2965
Raw
History Blame Contribute Delete
336 Bytes
from pydantic import BaseModel
from typing import Dict
class PredictionResponse(BaseModel):
predictions: Dict[str, float]
message: str = "Success"
class BatchPredictionResponse(BaseModel):
results: Dict[str, Dict[str, float]]
message: str = "Success"
class HealthResponse(BaseModel):
status: str
message: str