utkarsh1797 commited on
Commit
5687e79
Β·
verified Β·
1 Parent(s): b6bbf8d

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -7
src/streamlit_app.py CHANGED
@@ -9,14 +9,8 @@ import nltk
9
 
10
  # Setup NLTK and benepar
11
 
12
- # πŸ‘‡ Set a safe, writable download path
13
- nltk_data_path = os.path.join(os.getcwd(), "nltk_data")
14
- os.makedirs(nltk_data_path, exist_ok=True)
15
-
16
- # πŸ‘‡ Download the tokenizer to the safe location
17
  nltk.download('punkt', download_dir=nltk_data_path)
18
-
19
- # πŸ‘‡ Tell NLTK to look here for data
20
  nltk.data.path.append(nltk_data_path)
21
 
22
  benepar.download('benepar_en3')
 
9
 
10
  # Setup NLTK and benepar
11
 
12
+ nltk_data_path = "/tmp/nltk_data"
 
 
 
 
13
  nltk.download('punkt', download_dir=nltk_data_path)
 
 
14
  nltk.data.path.append(nltk_data_path)
15
 
16
  benepar.download('benepar_en3')