shrg7 commited on
Commit
8fd4bdc
·
verified ·
1 Parent(s): 8366661

Add README with per-config metadata

Browse files
Files changed (1) hide show
  1. README.md +9 -1
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
- print(ds[0]["prompt"], ds[0]["correct_option"])
 
 
 
 
 
 
 
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
  ```