Deployment on community cloud

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:

  1. What is the exact error message (you should be able to see that by expanding the right sidebar on community cloud)?
  2. What repo are you deploying from?
  3. Is trained_model.sav a file that is saved in your repository, or does it get generated as the app is run?
  4. Does trained_model.sav exist?
  5. 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

  1. Typo: requirenments.txt
  2. Leave out pickle, it is already in the std library
1 Like

Removed, pickle from requirenments.txt

but the issue is same.
Same error is occuring again

requirements.txt

ok thanks, now its working

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.