mariosasko commited on
Commit
8985e8c
1 Parent(s): 184e359
Files changed (1) hide show
  1. danbooru2023.py +1 -1
danbooru2023.py CHANGED
@@ -30,7 +30,7 @@ class DanbooruDataset(datasets.GeneratorBasedBuilder):
30
  def _split_generators(self, dl_manager: DownloadManager):
31
  base_path = dl_manager._base_path
32
  if base_path.startswith(datasets.config.HF_ENDPOINT):
33
- base_path = base_path[len(datasets.config.HF_ENDPOINT):].replace("/resolve", "", 1)
34
  base_path = "hf://" + base_path.lstrip("/")
35
  fs, path = url_to_fs(base_path)
36
  urls = fs.glob(posixpath.join(path, "**/*.tar"), detail=False)
 
30
  def _split_generators(self, dl_manager: DownloadManager):
31
  base_path = dl_manager._base_path
32
  if base_path.startswith(datasets.config.HF_ENDPOINT):
33
+ base_path = base_path[len(datasets.config.HF_ENDPOINT):].replace("/resolve", "@", 1)
34
  base_path = "hf://" + base_path.lstrip("/")
35
  fs, path = url_to_fs(base_path)
36
  urls = fs.glob(posixpath.join(path, "**/*.tar"), detail=False)