coffeeee commited on
Commit
adafa1e
1 Parent(s): 97ed87c

added nltk download punkt

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,6 +5,8 @@ import string
5
  from transformers import GPT2LMHeadModel, GPT2Tokenizer, GenerationConfig, set_seed
6
  import random
7
 
 
 
8
  response_length = 200
9
 
10
  sentence_detector = nltk.data.load('tokenizers/punkt/english.pickle')
 
5
  from transformers import GPT2LMHeadModel, GPT2Tokenizer, GenerationConfig, set_seed
6
  import random
7
 
8
+ nltk.download('punkt')
9
+
10
  response_length = 200
11
 
12
  sentence_detector = nltk.data.load('tokenizers/punkt/english.pickle')