Reading pickle file python

Hello,
I am deploying an ML application on python onto Streamlit.
I have tested my code locally from my computer and everything seems working perfectly.
However, when deploying my code onto streamlit, I get an error when I try to load a pickle file (basically a saved ML model), which is kept in my computer so I am guessing that would be the reason… how do I get it to work?
here is my file:
model_from_joblib = joblib.load(default_class_model.pkl)

Hi @Marcela_Bejarano, welcome to the Streamlit community!

If I had to guess, I suspect that you are using a different version locally than the default on Streamlit Cloud. To set the Python version on Streamlit Cloud, please see the following:

Best,
Randy