polinaeterna HF staff commited on
Commit
1ac0234
1 Parent(s): fe1a6b8

fix gettin number of shards

Browse files
Files changed (1) hide show
  1. peoples_speech.py +1 -1
peoples_speech.py CHANGED
@@ -149,7 +149,7 @@ class PeoplesSpeech(datasets.GeneratorBasedBuilder):
149
 
150
  audio_urls = {
151
  split: [
152
- _DATA_URL.format(split=split, config=config, archive_id=i) for i in range(n_shards[split])
153
  ] for split, config in splits_to_configs.items()
154
  }
155
  audio_archive_paths = dl_manager.download(audio_urls)
 
149
 
150
  audio_urls = {
151
  split: [
152
+ _DATA_URL.format(split=split, config=config, archive_id=i) for i in range(n_shards[split][config])
153
  ] for split, config in splits_to_configs.items()
154
  }
155
  audio_archive_paths = dl_manager.download(audio_urls)