DCNemesis commited on
Commit
21d92d1
·
1 Parent(s): 3a00820

adjust file loading location

Browse files
Files changed (1) hide show
  1. audio-kw-in-context.py +1 -1
audio-kw-in-context.py CHANGED
@@ -124,7 +124,7 @@ class AudioKwInContext(datasets.GeneratorBasedBuilder):
124
  def _generate_examples(self, audio_dir, data, split):
125
  for key, row in enumerate(data[split]):
126
  try:
127
- tfile = os.path.join(audio_dir, 'content/' + row['file'])
128
  if not tfile.endswith('.mp3'):
129
  os.rename(tfile, tfile + '.mp3')
130
  tfile += '.mp3'
 
124
  def _generate_examples(self, audio_dir, data, split):
125
  for key, row in enumerate(data[split]):
126
  try:
127
+ tfile = os.path.join(audio_dir, row['file'])
128
  if not tfile.endswith('.mp3'):
129
  os.rename(tfile, tfile + '.mp3')
130
  tfile += '.mp3'