Spaces:
Runtime error
Runtime error
xclasscode
commited on
Commit
·
e048902
1
Parent(s):
74c7e17
Update schemas.py
Browse files- schemas.py +3 -7
schemas.py
CHANGED
@@ -2,18 +2,14 @@ from pydantic import BaseModel
|
|
2 |
from datetime import datetime
|
3 |
|
4 |
class SentimentResultBase(BaseModel):
|
5 |
-
|
6 |
positive_score: float
|
7 |
negative_score: float
|
8 |
-
neutral_score: float
|
9 |
|
10 |
class SentimentResultCreate(SentimentResultBase):
|
11 |
pass
|
12 |
|
13 |
class SentimentResult(SentimentResultBase):
|
14 |
id: int
|
15 |
-
|
16 |
-
created_at: datetime
|
17 |
-
|
18 |
-
class Config:
|
19 |
-
from_attributes = True
|
|
|
2 |
from datetime import datetime
|
3 |
|
4 |
class SentimentResultBase(BaseModel):
|
5 |
+
text_input: str
|
6 |
positive_score: float
|
7 |
negative_score: float
|
|
|
8 |
|
9 |
class SentimentResultCreate(SentimentResultBase):
|
10 |
pass
|
11 |
|
12 |
class SentimentResult(SentimentResultBase):
|
13 |
id: int
|
14 |
+
text_input: str
|
15 |
+
created_at: datetime
|
|
|
|
|
|