sps44 commited on
Commit
5c8bf8c
1 Parent(s): 653c5ef
Files changed (1) hide show
  1. dcase23-task2-enriched.py +1 -1
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": None}
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}