Tabular data classification (binary) - handler.py

Hi!

I’ve successfully trained a model on tabular data (using AutoTrain) and I’m in the process of deploying it, but I’m facing the issue of a missing handler while trying to deploy.

Warning: deploying this model with a custom task may fail as a handler.py file was not found in the repository. Refer to the documentation for more details.

Unfortunately, the tabular data classification template does not include a handler.py file and I’m struggling to understand how to create one for my model.

I suppose the simplest way would be for the handler to include all input data ‘features’ as a json dictionary when posting it to the deployed endpoint.

I haven’t found any tabular-specific handlers that I could modify to do this, so any pointers would be really appreciated.