Spaces:
Sleeping
Sleeping
VictorGearhead
commited on
Commit
•
b488e1d
1
Parent(s):
d17e77e
Update app.py
Browse files
app.py
CHANGED
@@ -23,17 +23,17 @@ import torch.nn.functional as fun
|
|
23 |
from tqdm.notebook import tqdm
|
24 |
import matplotlib.pyplot as plt
|
25 |
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
-
|
37 |
from nltk.tokenize import word_tokenize
|
38 |
|
39 |
import random
|
|
|
23 |
from tqdm.notebook import tqdm
|
24 |
import matplotlib.pyplot as plt
|
25 |
|
26 |
+
import nltk
|
27 |
+
import ssl
|
28 |
|
29 |
+
try:
|
30 |
+
_create_unverified_https_context = ssl._create_unverified_context
|
31 |
+
except AttributeError:
|
32 |
+
pass
|
33 |
+
else:
|
34 |
+
ssl._create_default_https_context = _create_unverified_https_context
|
35 |
|
36 |
+
nltk.download()
|
37 |
from nltk.tokenize import word_tokenize
|
38 |
|
39 |
import random
|