Spaces:
Running
Running
Ari
commited on
Update app.py
Browse files
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 |
-
#
|
|
|
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")
|