eduvedras commited on
Commit ·
907df04
1
Parent(s): 4f73cd1
Changes
Browse files- VQG.py +2 -0
- metadata_test.csv +0 -0
- metadata_train.csv +0 -0
- metadata_validation.csv +0 -0
VQG.py
CHANGED
|
@@ -64,6 +64,7 @@ class VQGTargz(datasets.GeneratorBasedBuilder):
|
|
| 64 |
"Id": datasets.Value("string"),
|
| 65 |
"Question": datasets.Value("string"),
|
| 66 |
"Chart": datasets.Image(),
|
|
|
|
| 67 |
}
|
| 68 |
),
|
| 69 |
# No default supervised_keys (as we have to pass both question
|
|
@@ -107,6 +108,7 @@ class VQGTargz(datasets.GeneratorBasedBuilder):
|
|
| 107 |
"Chart": {"path": filepath, "bytes": image.read()},
|
| 108 |
"Question": row['Question'],
|
| 109 |
"Id": row['Id'],
|
|
|
|
| 110 |
}
|
| 111 |
break
|
| 112 |
idx += 1
|
|
|
|
| 64 |
"Id": datasets.Value("string"),
|
| 65 |
"Question": datasets.Value("string"),
|
| 66 |
"Chart": datasets.Image(),
|
| 67 |
+
"Chart_name": datasets.Value("string"),
|
| 68 |
}
|
| 69 |
),
|
| 70 |
# No default supervised_keys (as we have to pass both question
|
|
|
|
| 108 |
"Chart": {"path": filepath, "bytes": image.read()},
|
| 109 |
"Question": row['Question'],
|
| 110 |
"Id": row['Id'],
|
| 111 |
+
"Chart_name": row['Chart'],
|
| 112 |
}
|
| 113 |
break
|
| 114 |
idx += 1
|
metadata_test.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata_train.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata_validation.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|