Spaces:
Runtime error
Runtime error
Commit
·
9690ed8
1
Parent(s):
df5de91
Update schemas.py
Browse files- schemas.py +2 -3
schemas.py
CHANGED
|
@@ -3,13 +3,12 @@ from datetime import datetime
|
|
| 3 |
|
| 4 |
class SentimentResultBase(BaseModel):
|
| 5 |
text_input: str
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
class SentimentResultCreate(SentimentResultBase):
|
| 10 |
pass
|
| 11 |
|
| 12 |
class SentimentResult(SentimentResultBase):
|
| 13 |
id: int
|
| 14 |
-
text_input: str
|
| 15 |
created_at: datetime
|
|
|
|
| 3 |
|
| 4 |
class SentimentResultBase(BaseModel):
|
| 5 |
text_input: str
|
| 6 |
+
score: float
|
| 7 |
+
label: str
|
| 8 |
|
| 9 |
class SentimentResultCreate(SentimentResultBase):
|
| 10 |
pass
|
| 11 |
|
| 12 |
class SentimentResult(SentimentResultBase):
|
| 13 |
id: int
|
|
|
|
| 14 |
created_at: datetime
|