File size: 293 Bytes
7618583
 
 
6801092
e048902
9690ed8
 
6801092
 
 
 
 
 
e048902
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pydantic import BaseModel
from datetime import datetime

class SentimentResultBase(BaseModel):
    text_input: str
    score: float
    label: str

class SentimentResultCreate(SentimentResultBase):
    pass

class SentimentResult(SentimentResultBase):
    id: int
    created_at: datetime