DCNemesis commited on
Commit
fa69079
·
1 Parent(s): d18b8ee

attempt to fix file loading

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