autotraderuk / fastapi-mlflow

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

Handle models with `np.int32` inputs #5

Closed bloomonkey closed 2 years ago

bloomonkey commented 2 years ago

Models with expected input including 32-bit integers currently fail at runtime:

E           mlflow.exceptions.MlflowException: Incompatible input types for column a. Can not safely convert int64 to int32.

../.venv/lib/python3.8/site-packages/mlflow/pyfunc/__init__.py:439: MlflowException