File size: 333 Bytes
7618583
 
 
6801092
e048902
6801092
 
 
 
 
 
 
 
e048902
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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