maxardito commited on
Commit
dfff4e3
·
1 Parent(s): a10875d

Removed lanugage column leftover from example

Browse files
Files changed (1) hide show
  1. beatbox.py +1 -2
beatbox.py CHANGED
@@ -101,8 +101,7 @@ class BeatboxDataset(datasets.GeneratorBasedBuilder):
101
  with open(metadata_path, "r", encoding="utf-8") as f:
102
  reader = csv.DictReader(f)
103
  for row in reader:
104
- if self.config.name == "_all_" or self.config.name == row[
105
- "language"]:
106
  row["path"] = os.path.join(path_to_clips, row["path"])
107
  # if data is incomplete, fill with empty values
108
  for field in data_fields:
 
101
  with open(metadata_path, "r", encoding="utf-8") as f:
102
  reader = csv.DictReader(f)
103
  for row in reader:
104
+ if self.config.name == "_all_":
 
105
  row["path"] = os.path.join(path_to_clips, row["path"])
106
  # if data is incomplete, fill with empty values
107
  for field in data_fields: