diarray commited on
Commit
bd2264b
·
1 Parent(s): e283a8b

Fix path to metadata.csv

Browse files
Files changed (1) hide show
  1. dataset.py +2 -1
dataset.py CHANGED
@@ -93,9 +93,10 @@ class JeliASR(datasets.GeneratorBasedBuilder):
93
  - TRAIN: file paths containing "/train/"
94
  - TEST: file paths containing "/test/"
95
  """
 
96
  # If someone calls load_dataset("RobotsMali/jeli-asr", data_dir="jeli-asr"),
97
  # self.config.data_dir will be set to "jeli-asr" inside the downloaded repo.
98
- metadata_path = os.path.join(dl_manager.manual_dir or "", "metadata.csv")
99
 
100
  # We do not need to call dl_manager.download_and_extract here because
101
  # the audio + CSV are already on the Hub. The Datasets library will handle
 
93
  - TRAIN: file paths containing "/train/"
94
  - TEST: file paths containing "/test/"
95
  """
96
+ base_dir = self.config.data_dir or ""
97
  # If someone calls load_dataset("RobotsMali/jeli-asr", data_dir="jeli-asr"),
98
  # self.config.data_dir will be set to "jeli-asr" inside the downloaded repo.
99
+ metadata_path = os.path.join(base_dir, "metadata.csv")
100
 
101
  # We do not need to call dl_manager.download_and_extract here because
102
  # the audio + CSV are already on the Hub. The Datasets library will handle