Add README with per-config metadata
Browse files
README.md
CHANGED
|
@@ -41,6 +41,14 @@ erroneous step) and an image, select the option that correctly completes the tas
|
|
| 41 |
|
| 42 |
```python
|
| 43 |
from datasets import load_dataset
|
|
|
|
| 44 |
ds = load_dataset("shrg7/COSPLAN", "blocksworld", split="test")
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
```
|
|
|
|
| 41 |
|
| 42 |
```python
|
| 43 |
from datasets import load_dataset
|
| 44 |
+
|
| 45 |
ds = load_dataset("shrg7/COSPLAN", "blocksworld", split="test")
|
| 46 |
+
|
| 47 |
+
row = ds[0]
|
| 48 |
+
print(row["prompt"], row["correct_option"])
|
| 49 |
+
|
| 50 |
+
# The image is decoded as a PIL.Image under the "image" column
|
| 51 |
+
img = row["image"]
|
| 52 |
+
print(img.size, img.mode)
|
| 53 |
+
img.save("example.png") # or img.show()
|
| 54 |
```
|