70
Browse files
app/data/shakespeare_char/prepare.py
CHANGED
@@ -52,11 +52,9 @@ val_ids = np.array(val_ids, dtype=np.uint16)
|
|
52 |
file_path_train = os.path.join(os.path.dirname(__file__), 'train.bin')
|
53 |
file_path_val = os.path.join(os.path.dirname(__file__), 'val.bin')
|
54 |
|
55 |
-
|
56 |
-
# with open(file_path_train, 'wb') as file:
|
57 |
|
58 |
-
|
59 |
-
# with open(file_path_val, 'wb') as file:
|
60 |
|
61 |
permissions = 0o755
|
62 |
|
|
|
52 |
file_path_train = os.path.join(os.path.dirname(__file__), 'train.bin')
|
53 |
file_path_val = os.path.join(os.path.dirname(__file__), 'val.bin')
|
54 |
|
55 |
+
with open(file_path_train, 'wb') as file:
|
|
|
56 |
|
57 |
+
with open(file_path_val, 'wb') as file:
|
|
|
58 |
|
59 |
permissions = 0o755
|
60 |
|