LDJA commited on
Commit
67ab6aa
·
1 Parent(s): b34646d
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
- # if not os.path.exists(file_path_train):
56
- # with open(file_path_train, 'wb') as file:
57
 
58
- # if not os.path.exists(file_path_val):
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