diff --git a/src/main.py b/src/main.py index f346ee3..f227b80 100644 --- a/src/main.py +++ b/src/main.py @@ -75,7 +75,7 @@ class TransactionForm(BaseModel): merch_long: float = Field(..., description="Merchant longitude") @app.get("/", response_class=HTMLResponse) -async def home(request: Request): +def home(request: Request): """Render the home page with the transaction form.""" return templates.TemplateResponse( "index.html", @@ -83,7 +83,7 @@ async def home(request: Request): ) @app.post("/predict", response_class=HTMLResponse) -async def predict( +def predict( request: Request, trans_date_trans_time: str = Form(...), cc_num: str = Form(...),