Streamlit_ModuleNotFoundError:

I am getting an error when I try to deploy my app

The error says: ModuleNotFoundError: 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).

File “/mount/src/chefai_recommender_system/chefai.py”, line 3, in
from sklearn.metrics.pairwise import cosine_similarity

here is my github account:

I would be appreciated if you help me

Hi @mertwithamouth

Typically, the ModuleNotFoundError message suggests that a prerequisite library is not found and thus could not be used by the app. Adding a new library to the code after an app has been deployed may encounter this error. I’d recommend to reboot the app so that the server has a chance to install any prerequisite libraries specified in requirements.txt file which I see you have included.

Hope this helps!