pszemraj commited on
Commit
3bfffe7
1 Parent(s): 7d05dc4

Signed-off-by: peter szemraj <peterszemraj@gmail.com>

Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -34,12 +34,9 @@ from utils import load_example_filenames, saves_summary, truncate_word_count
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 = [
 
34
 
35
  _here = Path(__file__).parent
36
 
37
+ os.environ["NLTK_DATA"] = str(_here / "nltk_data")
38
+ nltk.download("punkt", force=True, download_dir=os.environ["NLTK_DATA"], quiet=True)
39
+ nltk.download("popular", force=True, download_dir=os.environ["NLTK_DATA"])
 
 
 
40
 
41
 
42
  MODEL_OPTIONS = [