pszemraj commited on
Commit
7d05dc4
·
1 Parent(s): f5b283c

👽️ last nltk try

Browse files

Signed-off-by: peter szemraj <[email protected]>

Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -34,8 +34,12 @@ from utils import load_example_filenames, saves_summary, truncate_word_count
34
 
35
  _here = Path(__file__).parent
36
 
37
- nltk.download("popular", quiet=True)
38
- nltk.download("punkt", quiet=True)
 
 
 
 
39
 
40
 
41
  MODEL_OPTIONS = [
 
34
 
35
  _here = Path(__file__).parent
36
 
37
+ nltk.download("punkt", force=True, download_dir=str(_here / "nltk_data"), quiet=True)
38
+ nltk.download(
39
+ "popular",
40
+ force=True,
41
+ download_dir=str(_here / "nltk_data"),
42
+ )
43
 
44
 
45
  MODEL_OPTIONS = [