Datasets:
fix: csv reading
Browse files
spam-text-messages-dataset.py
CHANGED
|
@@ -53,7 +53,7 @@ class SpamTextMessagesDataset(datasets.GeneratorBasedBuilder):
|
|
| 53 |
]
|
| 54 |
|
| 55 |
def _generate_examples(self, images, annotations):
|
| 56 |
-
annotations_df = pd.read_csv(annotations
|
| 57 |
|
| 58 |
for idx, (image_path, image) in enumerate(images):
|
| 59 |
yield idx, {
|
|
|
|
| 53 |
]
|
| 54 |
|
| 55 |
def _generate_examples(self, images, annotations):
|
| 56 |
+
annotations_df = pd.read_csv(annotations)
|
| 57 |
|
| 58 |
for idx, (image_path, image) in enumerate(images):
|
| 59 |
yield idx, {
|