Update test3.py
Browse files
test3.py
CHANGED
@@ -74,8 +74,11 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
74 |
]
|
75 |
|
76 |
def _generate_examples(self, files):
|
|
|
77 |
for path in files.itertuples():
|
78 |
-
|
|
|
|
|
79 |
"label": path.label,
|
80 |
"image_data": path.image_data,
|
81 |
-
|
|
|
74 |
]
|
75 |
|
76 |
def _generate_examples(self, files):
|
77 |
+
cnt=0
|
78 |
for path in files.itertuples():
|
79 |
+
print(cnt)
|
80 |
+
cnt+=1
|
81 |
+
yield {
|
82 |
"label": path.label,
|
83 |
"image_data": path.image_data,
|
84 |
+
}
|