Pingul's picture
Upload 2 files
71b75c8 verified
raw
history blame contribute delete
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]