St4n commited on
Commit
a7faf2f
·
1 Parent(s): 778245f

Update self_dataset.py

Browse files
Files changed (1) hide show
  1. self_dataset.py +3 -3
self_dataset.py CHANGED
@@ -141,10 +141,10 @@ class ATC(datasets.GeneratorBasedBuilder):
141
  for row in csv_reader:
142
  file_name, reference = row
143
 
144
- file_path = os.path.join(audio_path, *file_path.split("/"))
145
  yield key, {
146
- "path": file_path,
147
- "audio": file_path,
148
  "transcription": reference,
149
  "lang_id": _ALL_CONFIGS.index(lang),
150
  }
 
141
  for row in csv_reader:
142
  file_name, reference = row
143
 
144
+ file_name = os.path.join(audio_path, *file_path.split("/"))
145
  yield key, {
146
+ "path": file_name,
147
+ "audio": file_name,
148
  "transcription": reference,
149
  "lang_id": _ALL_CONFIGS.index(lang),
150
  }