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.
Just incase you want to have a look at my code: https://github.com/swaraj-khan/stroke-prediction-DA/blob/main/predict.py
Hi there @swaraj-khan ,
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.
Hope this helps!
This is what I have added :
The error still persist:
I have updated the versions as well:
It seems your app is working now with the
requirements.txt file and updated dependencies
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.