tarfile is flat, fix loading
Browse files- 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 |
-
|
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'
|