Ari commited on
Commit
c2c4472
1 Parent(s): ce9568b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -10,8 +10,7 @@ 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_tab')
15
 
16
  tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn")
17
  model = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-large-cnn")
 
10
  from reportlab.pdfgen import canvas
11
 
12
  # Clear any potentially corrupted data and ensure correct download
13
+ nltk.download('punkt')
 
14
 
15
  tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn")
16
  model = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-large-cnn")