Welcome to the Streamlit forum!
The issue is unrelated to Streamlit, please look through past forum threads on this topic and also consult the SO thread shared above: python - KeyError when loading pickled scikit-learn model using joblib - Stack Overflow
We try limiting posts on the Streamlit forum to Streamlit-specific issues. Additionally, please avoid tagging or DM’ing Streamlit staff and moderators.
We’re so glad you’ve found the Streamlit forum! Here are some guidelines to help you craft a thoughtful post that will receive helpful answers:
Use the search bar to see if someone has previously posted or answered your question.
Our forum is full of awesome community members like yourself who have shared their solutions for most errors and issues. There’s a good chance someone encountered a similar problem in the past and has posted on the forum.
If you’ve run into an error message, try…