Pickle file upload

FileNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
    exec(code, module.__dict__)File "/app/movierecomend/movie3.py", line 28, in <module>
    movies = pickle.load(open('movierecomend/movie_list.pkl','rb'))

Hi @Shivam_Singh :wave:

As movie_list.pkl and movie3.py are in the same directory (root of the repo), you can omit the repo prefix from the path passed to open(). i.e., change line 28 to the following:

movies = pickle.load(open(movie_list.pkl','rb'))

Note: there is an additional space in the movie_list .pkl filename that must be removed first in order for the above change to work.

Happy Streamlit-ing! :balloon:
Snehan

PS: You will run into an error on line 29 as similarity.pkl does not exist.

NameError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
    exec(code, module.__dict__)File "/app/movierecomend/movie3.py", line 6, in <module>
    movie_list=pickle.load(open(movie_list.pkl,'rb'))

The space in the filename must be removed.