spam-detection / app /schemas.py
abhinavvvvv's picture
updated approach
6cbee4e
raw
history blame contribute delete
169 Bytes
from pydantic import BaseModel
class PredictRequest(BaseModel):
text: str
class PredictResponse(BaseModel):
label: str
score: float
threshold: float