Hi I am having problem to load model for prediction. When I run the model_load, it gives me error message. My python version 3.7.13. My pycaret version is 3 and there is no list of version for me to select.
Below is the code to save the model from google colab:
I’m not exactly sure what is going on from the messages but if you give me code to copy and paste instead of pictures, I can maybe do some more debugging on Streamlit’s side to try to understand the issue.
When loading pickle files, it’s important to ensure that the versions of Python packages used to create the pickle files are identical to the versions used when loading the files. i.e. ensure the Python packages you use locally are the same versions as those on Google Colab.
In particular, as the message says a pycaret attribute isn’t found, I would check the pycaret version differences locally vs on Colab.
hey snehankekre. I think it is really due to the miss match of version between colab pycaret and my anaconda version for streamlit. I tried to redo my model using anaconda version jupyer and the model load without problem at the same anaconda for streamlit. I cant wait to apply the new model to my apps. Hope it works too. Will keep you update. thanks for your help