Omarelrayes commited on
Commit
9998128
·
verified ·
1 Parent(s): b6de416

Update app/models.py

Browse files
Files changed (1) hide show
  1. app/models.py +11 -3
app/models.py CHANGED
@@ -1,6 +1,5 @@
1
  from pydantic import BaseModel
2
  from typing import Optional
3
- from datetime import datetime
4
 
5
  class PredictionResponse(BaseModel):
6
  request_id: str
@@ -9,8 +8,17 @@ class PredictionResponse(BaseModel):
9
  prediction: str
10
  confidence: float
11
  model_version: str
12
- status: str = "completed"
 
 
13
 
14
- class HistoryItem(PredictionResponse):
 
 
 
 
 
 
15
  timestamp: str
 
16
  segmentation_path: Optional[str] = None
 
1
  from pydantic import BaseModel
2
  from typing import Optional
 
3
 
4
  class PredictionResponse(BaseModel):
5
  request_id: str
 
8
  prediction: str
9
  confidence: float
10
  model_version: str
11
+ timestamp: str
12
+ status: str
13
+ segmentation_path: Optional[str] = None
14
 
15
+ class HistoryItem(BaseModel):
16
+ request_id: str
17
+ filename: str
18
+ image_path: str
19
+ prediction: str
20
+ confidence: float
21
+ model_version: str
22
  timestamp: str
23
+ status: str
24
  segmentation_path: Optional[str] = None