xclasscode commited on
Commit
bb343f7
1 Parent(s): bcc9e8d

Update schemas.py

Browse files
Files changed (1) hide show
  1. schemas.py +2 -2
schemas.py CHANGED
@@ -3,8 +3,6 @@ from datetime import datetime
3
 
4
  class SentimentResultBase(BaseModel):
5
  text_input: str
6
- score: float
7
- label: str
8
 
9
  class SentimentResultCreate(SentimentResultBase):
10
  pass
@@ -12,6 +10,8 @@ class SentimentResultCreate(SentimentResultBase):
12
  class SentimentResult(SentimentResultBase):
13
  id: int
14
  created_at: datetime
 
 
15
 
16
  # Ensure SentimentResult inherits from BaseModel
17
  SentimentResultBase.update_forward_refs()
 
3
 
4
  class SentimentResultBase(BaseModel):
5
  text_input: str
 
 
6
 
7
  class SentimentResultCreate(SentimentResultBase):
8
  pass
 
10
  class SentimentResult(SentimentResultBase):
11
  id: int
12
  created_at: datetime
13
+ score: float
14
+ label: str
15
 
16
  # Ensure SentimentResult inherits from BaseModel
17
  SentimentResultBase.update_forward_refs()