fixed the request field having the wrong name

This commit is contained in:
faraphel 2025-01-08 19:48:17 +01:00
parent e2ebbf8a82
commit 66ae63ac19

View file

@ -62,7 +62,7 @@ def load(application: Application, model_manager: manager.ModelManager):
# infer the data through the model # infer the data through the model
try: try:
response = model.infer(request.data) response = model.infer(request.request)
except Exception: except Exception:
print(traceback.format_exc(), file=sys.stderr) print(traceback.format_exc(), file=sys.stderr)
raise fastapi.HTTPException(status_code=500, detail="An error occurred while inferring the model.") raise fastapi.HTTPException(status_code=500, detail="An error occurred while inferring the model.")