Yassine commited on
Commit
10d2a2e
1 Parent(s): f0dda28

fix streaming ds

Browse files
Files changed (1) hide show
  1. commavq.py +1 -1
commavq.py CHANGED
@@ -27,7 +27,7 @@ class CommaVQ(datasets.GeneratorBasedBuilder):
27
  """Returns SplitGenerators."""
28
  dl_manager.download_config.ignore_url_params = True
29
  downloaded_files = dl_manager.download(_URLS)
30
- local_extracted_archive = dl_manager.extract(downloaded_files) if not dl_manager.is_streaming else None
31
  return [
32
  datasets.SplitGenerator(
33
  name=str(i),
 
27
  """Returns SplitGenerators."""
28
  dl_manager.download_config.ignore_url_params = True
29
  downloaded_files = dl_manager.download(_URLS)
30
+ local_extracted_archive = dl_manager.extract(downloaded_files) if not dl_manager.is_streaming else [None]*len(downloaded_files)
31
  return [
32
  datasets.SplitGenerator(
33
  name=str(i),