Datasets:
Update docci.py
Browse files
docci.py
CHANGED
|
@@ -157,7 +157,7 @@ class DOCCI(datasets.GeneratorBasedBuilder):
|
|
| 157 |
"image": image_path,
|
| 158 |
"example_id": example_id,
|
| 159 |
"split": split,
|
| 160 |
-
"image_file":
|
| 161 |
}
|
| 162 |
|
| 163 |
yield _ex["example_id"], _ex
|
|
|
|
| 157 |
"image": image_path,
|
| 158 |
"example_id": example_id,
|
| 159 |
"split": split,
|
| 160 |
+
"image_file": os.path.basename(image_path),
|
| 161 |
}
|
| 162 |
|
| 163 |
yield _ex["example_id"], _ex
|