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

Upload audio-kw-in-context.py

Browse files
Files changed (1) hide show
  1. audio-kw-in-context.py +1 -1
audio-kw-in-context.py CHANGED
@@ -125,7 +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')
 
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')