Spaces:
Runtime error
Runtime error
| from pydantic import BaseModel | |
| from datetime import datetime | |
| class SentimentResultBase(BaseModel): | |
| text_input: str | |
| class SentimentResultCreate(SentimentResultBase): | |
| pass | |
| class SentimentResult(SentimentResultBase): | |
| id: int | |
| text_input: str | |
| score: float | |
| label: str | |
| created_at: datetime | |
| # Ensure SentimentResult inherits from BaseModel | |
| SentimentResultBase.update_forward_refs() | |