Datasets:
mb23
/

Languages:
English
License:
mickylan2367 commited on
Commit
0431810
·
1 Parent(s): 01eb839

Update LoadingScript

Browse files
Files changed (1) hide show
  1. GraySpectrogram.py +2 -2
GraySpectrogram.py CHANGED
@@ -164,9 +164,9 @@ class GraySpectrogram2(datasets.GeneratorBasedBuilder):
164
  label_list.append(data["label"])
165
 
166
  for idx, (file_path, file_obj) in enumerate(images):
167
- yield file_list[idx], {
168
  "image": {
169
- "path": file_list[idx],
170
  "bytes": file_obj.read()
171
  },
172
  "caption" : caption_list[idx],
 
164
  label_list.append(data["label"])
165
 
166
  for idx, (file_path, file_obj) in enumerate(images):
167
+ yield file_path, {
168
  "image": {
169
+ "path": file_path,
170
  "bytes": file_obj.read()
171
  },
172
  "caption" : caption_list[idx],