Fix router name

This commit is contained in:
Jacob Windsor 2025-02-19 11:29:31 +01:00
parent 8629268111
commit 952c526e6c

View File

@ -5,9 +5,9 @@ from app.services.ml_model import HousePricePredictor
router = APIRouter()
model = HousePricePredictor()
@router.post("/predict",
@router.get("/predictions/house-price",
response_model=HousePredictionOutput,
summary="Predict house price",
summary="Get a house price prediction",
description="Predicts the price of a house based on its features"
)
async def predict_price(input_data: HousePredictionInput) -> HousePredictionOutput: