KeithG33 commited on
Commit
e66e6eb
·
1 Parent(s): b661446

fix pathlib import

Browse files
Files changed (1) hide show
  1. ChessBot-Dataset.py +1 -1
ChessBot-Dataset.py CHANGED
@@ -24,7 +24,7 @@ class ChessPGNDataset(GeneratorBasedBuilder):
24
  )
25
 
26
  def _split_generators(self, dl_manager: DownloadManager):
27
- import pathlib as Path
28
  # 1) discover your shards inside the repo:
29
  data_dir = Path(self.config.data_dir)
30
  train_shards = sorted(data_dir.joinpath("train").glob("*.pgn"))
 
24
  )
25
 
26
  def _split_generators(self, dl_manager: DownloadManager):
27
+ from pathlib import Path
28
  # 1) discover your shards inside the repo:
29
  data_dir = Path(self.config.data_dir)
30
  train_shards = sorted(data_dir.joinpath("train").glob("*.pgn"))