Fix router name
This commit is contained in:
parent
8629268111
commit
952c526e6c
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user