atulksingh commited on
Commit
0127588
·
verified ·
1 Parent(s): 57c1af4

Update mypin-voice-dataset.py

Browse files
Files changed (1) hide show
  1. mypin-voice-dataset.py +1 -2
mypin-voice-dataset.py CHANGED
@@ -61,6 +61,5 @@ class MyDataset(datasets.GeneratorBasedBuilder):
61
  for idx, record in enumerate(examples):
62
  yield idx, {
63
  "sentence": record["sentence"],
64
- # "audio": os.path.join(audio_dir, record["file_name"]), # Correct path to the audio file
65
- "audio": os.path.join(audio_dir, "audio", record["file_name"]), # Correct path to the audio file
66
  }
 
61
  for idx, record in enumerate(examples):
62
  yield idx, {
63
  "sentence": record["sentence"],
64
+ "audio": os.path.join(audio_dir, record["file_name"]), # Correct path to the audio file
 
65
  }