mirror of
https://git.isriupjv.fr/ISRI/ai-server
synced 2025-04-24 18:18:11 +02:00
fixed the request field having the wrong name
This commit is contained in:
parent
e2ebbf8a82
commit
66ae63ac19
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue