I have 2 Python codes, 1 is to train the ANN model using tensorflow and sklearn. While the other one is to load up the trained model and perform the prediction. It works perfectly and able to produce prediction if i were to run them locally and call the second piece of code as a function.
However, when i try to exposed the code that loads the model and predicts to an API call using Flask, the model is not loading and i kept getting error messages regarding to deserialising.
I uploaded the code in my [GitHub](https://github.com/desmondtong/flask-backend-ann-model). Appreciate if anyone can help me to debug on this as I am new to Flask and didnt know much about Tensorflow/Sklearn as I received the Python codes from my friends.