wintercoming6 commited on
Commit
d389e37
·
verified ·
1 Parent(s): 6bbcb0e

Update test3.py

Browse files
Files changed (1) hide show
  1. test3.py +1 -2
test3.py CHANGED
@@ -55,7 +55,7 @@ class Artwork(datasets.GeneratorBasedBuilder):
55
  "image_data": bytes
56
  }
57
  ),
58
- supervised_keys=("file_name", "label","image_data"),
59
  homepage=_HOMEPAGE,
60
  citation=_CITATION,
61
  task_templates=[ImageClassification(image_column="image_data", label_column="label")],
@@ -77,7 +77,6 @@ class Artwork(datasets.GeneratorBasedBuilder):
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
  }
 
55
  "image_data": bytes
56
  }
57
  ),
58
+ supervised_keys=("label","image_data"),
59
  homepage=_HOMEPAGE,
60
  citation=_CITATION,
61
  task_templates=[ImageClassification(image_column="image_data", label_column="label")],
 
77
  def _generate_examples(self, files):
78
  for path in files.itertuples():
79
  yield {
 
80
  "label": path.label,
81
  "image_data": path.image_data,
82
  }