Spaces:
Sleeping
Sleeping
Update trainning.py
Browse files- trainning.py +1 -1
trainning.py
CHANGED
@@ -7,7 +7,7 @@ import torchvision.models as models
|
|
7 |
|
8 |
def decoder(indices):
|
9 |
|
10 |
-
with open(
|
11 |
vocab = pickle.load(f)
|
12 |
|
13 |
tokens = [vocab.lookup_token(idx) for idx in indices]
|
|
|
7 |
|
8 |
def decoder(indices):
|
9 |
|
10 |
+
with open("vocab.pkl", 'rb') as f:
|
11 |
vocab = pickle.load(f)
|
12 |
|
13 |
tokens = [vocab.lookup_token(idx) for idx in indices]
|