noflm commited on
Commit
c5f4205
1 Parent(s): 5881765

fix dataset config line:87,166

Browse files
Files changed (1) hide show
  1. EliteVoiceProject.py +2 -1
EliteVoiceProject.py CHANGED
@@ -84,6 +84,7 @@ class EliteVoiceProject(datasets.GeneratorBasedBuilder):
84
  )
85
  features = datasets.Features(
86
  {
 
87
  "audio": datasets.features.Audio(sampling_rate=48_000),
88
  "sentence": datasets.Value("string"),
89
  }
@@ -162,6 +163,6 @@ class EliteVoiceProject(datasets.GeneratorBasedBuilder):
162
  path = os.path.join(local_extracted_archive_paths[i], filename) if local_extracted_archive_paths else filename
163
  result["audio"] = {"path": path, "bytes": file.read()}
164
  # set path to None if the audio file doesn't exist locally (i.e. in streaming mode)
165
- #result["path"] = path if local_extracted_archive_paths else filename
166
 
167
  yield path, result
 
84
  )
85
  features = datasets.Features(
86
  {
87
+ "path": datasets.Value("string"),
88
  "audio": datasets.features.Audio(sampling_rate=48_000),
89
  "sentence": datasets.Value("string"),
90
  }
 
163
  path = os.path.join(local_extracted_archive_paths[i], filename) if local_extracted_archive_paths else filename
164
  result["audio"] = {"path": path, "bytes": file.read()}
165
  # set path to None if the audio file doesn't exist locally (i.e. in streaming mode)
166
+ result["path"] = path if local_extracted_archive_paths else filename
167
 
168
  yield path, result