sentiment_analyzer / schemas.py
xclasscode's picture
Update schemas.py
e048902
raw
history blame
333 Bytes
from pydantic import BaseModel
from datetime import datetime
class SentimentResultBase(BaseModel):
text_input: str
positive_score: float
negative_score: float
class SentimentResultCreate(SentimentResultBase):
pass
class SentimentResult(SentimentResultBase):
id: int
text_input: str
created_at: datetime