Spaces:
Runtime error
Runtime error
File size: 402 Bytes
7618583 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):
positive_score: float
negative_score: float
neutral_score: float
class SentimentResultCreate(SentimentResultBase):
pass
class SentimentResult(SentimentResultBase):
id: int
created_at: datetime
user_id: int
text_id: int
class Config:
from_attributes = True |