Spaces:
Runtime error
Runtime error
File size: 400 Bytes
7618583 6801092 64c321d 6801092 64c321d 6801092 64c321d 6801092 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from pydantic import BaseModel
from datetime import datetime
class SentimentResultBase(BaseModel):
text: str
positive_score: float
negative_score: float
neutral_score: float
class SentimentResultCreate(SentimentResultBase):
pass
class SentimentResult(SentimentResultBase):
id: int
text: str
created_at: datetime
class Config:
from_attributes = True |