jnemecek commited on
Commit
9ddfba0
·
1 Parent(s): 97b60c4

tarfile is flat, fix loading

Browse files
Files changed (1) hide show
  1. audio-kw-in-context.py +1 -2
audio-kw-in-context.py CHANGED
@@ -125,8 +125,7 @@ class AudioKwInContext(datasets.GeneratorBasedBuilder):
125
  for key, row in enumerate(data[split]):
126
  try:
127
  trows = row['file'].split('/')
128
- trow = '/'.join([trows[0], 'HF-context-v2', *trows[1:]])
129
- tfile = os.path.join(audio_dir, trow)
130
  if not tfile.endswith('.mp3'):
131
  os.rename(tfile, tfile + '.mp3')
132
  tfile += '.mp3'
 
125
  for key, row in enumerate(data[split]):
126
  try:
127
  trows = row['file'].split('/')
128
+ tfile = os.path.join(audio_dir, trows[-1])
 
129
  if not tfile.endswith('.mp3'):
130
  os.rename(tfile, tfile + '.mp3')
131
  tfile += '.mp3'