initial commit

This commit is contained in:
Patrick Huembeli
2025-02-19 10:23:52 +01:00
parent 59b008d8f8
commit ca7b2e3315
8 changed files with 117 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from pydantic import BaseModel, Field
from typing import List
class HousePredictionInput(BaseModel):
square_feet: float = Field(..., gt=0, description="Square footage of the house")
bedrooms: int = Field(..., ge=1, description="Number of bedrooms")
bathrooms: float = Field(..., gt=0, description="Number of bathrooms")
class Config:
json_schema_extra = {
"example": {
"square_feet": 2000,
"bedrooms": 3,
"bathrooms": 2.5
}
}
class HousePredictionOutput(BaseModel):
predicted_price: float
confidence_score: float
similar_listings: List[float]