Spaces:
Runtime error
Runtime error
added nltk download punkt
Browse files
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')
|