autotraderuk / fastapi-mlflow

Deploy mlflow models as JSON APIs with minimal new code
Apache License 2.0
19 stars 4 forks source link

Catch and expose errors from ML model #8

Closed bloomonkey closed 1 year ago

bloomonkey commented 1 year ago

Catch errors raised by ML model's predict method, format them as JSON, and return as the body of the 500 status response.

This empowers clients to interpret errors raised internally.