Hi I am new to streamlit cloud and this is my first time deploying on Streamlit cloud.
The deployment works on my local environment, however when I am deploying it, I am getting this error
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/nltk/corpus/util.py", line 84, in __load
root = nltk.data.find(f"{self.subdir}/{zip_name}")
File "/home/appuser/venv/lib/python3.7/site-packages/nltk/data.py", line 583, in find
raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource stopwords not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('stopwords')
For more information see: https://www.nltk.org/data.html
Attempted to load corpora/stopwords.zip/stopwords/
Searched in:
- '/home/appuser/nltk_data'
- '/home/appuser/venv/nltk_data'
- '/home/appuser/venv/share/nltk_data'
- '/home/appuser/venv/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
**********************************************************************
This is the link to my repository
I have added
import nltk
nltk.download(‘stopwords’)
to the app.py
This is my requirements file
docx==0.2.4
pandas==1.1.5
pdfplumber==0.6.0
PyPDF2==1.27.12
pyresparser==1.0.6
python_docx==0.8.11
stqdm==0.0.4
streamlit==1.8.1
type or paste code here