Ari commited on
Commit
636fcfd
·
verified ·
1 Parent(s): b74e4b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,7 +9,8 @@ from docx import Document
9
  from reportlab.lib.pagesizes import letter
10
  from reportlab.pdfgen import canvas
11
 
12
- # Ensure that the punkt tokenizer is downloaded
 
13
  nltk.download('punkt')
14
 
15
  tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn")
 
9
  from reportlab.lib.pagesizes import letter
10
  from reportlab.pdfgen import canvas
11
 
12
+ # Clear any potentially corrupted data and ensure correct download
13
+ nltk.data.path = ['nltk_data', '/usr/local/nltk_data', '/usr/share/nltk_data', '/usr/lib/nltk_data']
14
  nltk.download('punkt')
15
 
16
  tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn")