system HF staff commited on
Commit
c12ea60
1 Parent(s): a49ad69

Update files from the datasets library (from 1.12.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.12.0

Files changed (1) hide show
  1. timit_asr.py +1 -1
timit_asr.py CHANGED
@@ -121,7 +121,7 @@ class TimitASR(datasets.GeneratorBasedBuilder):
121
  data_path = os.path.join(os.path.dirname(data_info_csv).strip(), "data")
122
 
123
  # Read the data info to extract rows mentioning about non-converted audio only
124
- data_info = pd.read_csv(data_info_csv, encoding="utf8")
125
  # making sure that the columns having no information about the file paths are removed
126
  data_info.dropna(subset=["path_from_data_dir"], inplace=True)
127
 
 
121
  data_path = os.path.join(os.path.dirname(data_info_csv).strip(), "data")
122
 
123
  # Read the data info to extract rows mentioning about non-converted audio only
124
+ data_info = pd.read_csv(open(data_info_csv, encoding="utf8"))
125
  # making sure that the columns having no information about the file paths are removed
126
  data_info.dropna(subset=["path_from_data_dir"], inplace=True)
127