From 66ae63ac1900ee8b57bd94aef8e30d0a2b863eb0 Mon Sep 17 00:00:00 2001 From: faraphel Date: Wed, 8 Jan 2025 19:48:17 +0100 Subject: [PATCH] fixed the request field having the wrong name --- source/api/route/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/api/route/models.py b/source/api/route/models.py index 47fbb8f..700bc2a 100644 --- a/source/api/route/models.py +++ b/source/api/route/models.py @@ -62,7 +62,7 @@ def load(application: Application, model_manager: manager.ModelManager): # infer the data through the model try: - response = model.infer(request.data) + response = model.infer(request.request) except Exception: print(traceback.format_exc(), file=sys.stderr) raise fastapi.HTTPException(status_code=500, detail="An error occurred while inferring the model.")