File size: 358 Bytes
71b75c8
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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]