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.")