LDJA commited on
Commit
b34646d
·
1 Parent(s): 145ed0f
app/data/shakespeare_char/prepare.py CHANGED
@@ -52,11 +52,11 @@ 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
+ # 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