fix
Browse files
dcase23-task2-enriched.py
CHANGED
@@ -441,7 +441,7 @@ class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
|
|
441 |
if lookup in metadata["path"].values:
|
442 |
path = os.path.join(local_extracted_archive, path) if local_extracted_archive else path
|
443 |
if local_extracted_archive:
|
444 |
-
audio = {"path": path, "bytes":
|
445 |
else:
|
446 |
audio = {"path": path, "bytes": f.read()}
|
447 |
result = {field: None for field in data_fields}
|
|
|
441 |
if lookup in metadata["path"].values:
|
442 |
path = os.path.join(local_extracted_archive, path) if local_extracted_archive else path
|
443 |
if local_extracted_archive:
|
444 |
+
audio = {"path": path, "bytes": f.read()}
|
445 |
else:
|
446 |
audio = {"path": path, "bytes": f.read()}
|
447 |
result = {field: None for field in data_fields}
|