I have matplotlib installed in my laptop and my code works perfectly locally ( when I run it via streamlit run predict.py ) but when I try to run the same code via streamlit cloud it says the above error. Please assist.
Your repo are missing the requirements.txt file. It should have this exact name, and inside it you should list the packages and versions that you want to use (always good to keep it to the necessary ones). Once you’ve done this, make sure you reboot your app.