Zip Validation Failed for ML Model/main.py, Reason: Missing __init__ method in main.py file

Hi,

I was trying to upload a custom ML model in AI Center. But it showing that “Zip Validation Failed for ML Model/main.py, Reason: Missing init method in main.py file” -error.

How to solve this error?

@Subhamay_Maity I think your code is missing init python constructor.


That is my main.py