File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)File "/app/placement-prediction-model/placement_prediction_webapp.py", line 12, in <module>
loaded_model = pickle.load(open('trained_model.sav', 'rb'))
This error is coming
Hi @ABHISHEK_TYAGI, welcome to the forum!
Please read this post Using Streamlit: how to post a question in the Streamlit forum and add more details to enable other forum users to better help answer your question.
Off the top of my head, I would be very interested to know:
- What is the exact error message (you should be able to see that by expanding the right sidebar on community cloud)?
- What repo are you deploying from?
trained_model.sav a file that is saved in your repository, or does it get generated as the app is run?
- What is the smallest code snippet which reproduces the error you are seeing?
This is the repo I am deploying.
trained_model.sav is a file which is present in this repository
Removed, pickle from requirenments.txt
but the issue is same.
Same error is occuring again
ok thanks, now its working
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.