wintercoming6 commited on
Commit
838155b
·
verified ·
1 Parent(s): 54b69e9

Update test3.py

Browse files
Files changed (1) hide show
  1. test3.py +4 -4
test3.py CHANGED
@@ -75,9 +75,9 @@ class Artwork(datasets.GeneratorBasedBuilder):
75
  ]
76
 
77
  def _generate_examples(self, files):
78
- for path in files:
79
  yield {
80
- "filename": path['file_name'],
81
- "label": path['label'],
82
- "image_data": path['image_data'],
83
  }
 
75
  ]
76
 
77
  def _generate_examples(self, files):
78
+ for path in files.itertuples():
79
  yield {
80
+ "filename": path.file_name,
81
+ "label": path.label,
82
+ "image_data": path.image_data,
83
  }