Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,6 @@ class MonthlyExpense(BaseModel):
|
|
| 32 |
year: int
|
| 33 |
month: int
|
| 34 |
total: float = Field(..., description="Total expenses recorded for the month")
|
| 35 |
-
|
| 36 |
-
class APIResponse(BaseModel):
|
| 37 |
-
status: str
|
| 38 |
-
message: str
|
| 39 |
-
data: Optional[PredictionResponse] = None
|
| 40 |
|
| 41 |
class CategoryPrediction(BaseModel):
|
| 42 |
headCategoryId: str
|
|
@@ -48,7 +43,11 @@ class CategoryPrediction(BaseModel):
|
|
| 48 |
class PredictionResponse(BaseModel):
|
| 49 |
userId: str
|
| 50 |
categories: List[CategoryPrediction]
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
class MongoConnection:
|
| 54 |
def __init__(self) -> None:
|
|
|
|
| 32 |
year: int
|
| 33 |
month: int
|
| 34 |
total: float = Field(..., description="Total expenses recorded for the month")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
class CategoryPrediction(BaseModel):
|
| 37 |
headCategoryId: str
|
|
|
|
| 43 |
class PredictionResponse(BaseModel):
|
| 44 |
userId: str
|
| 45 |
categories: List[CategoryPrediction]
|
| 46 |
+
|
| 47 |
+
class APIResponse(BaseModel):
|
| 48 |
+
status: str
|
| 49 |
+
message: str
|
| 50 |
+
data: Optional[PredictionResponse] = None
|
| 51 |
|
| 52 |
class MongoConnection:
|
| 53 |
def __init__(self) -> None:
|