scikkk commited on
Commit
a664097
·
verified ·
1 Parent(s): d0f93ac

Add files using upload-large-folder tool

Browse files
Files changed (1) hide show
  1. README.md +6 -0
README.md CHANGED
@@ -31,9 +31,15 @@ For training and inference code, please refer to [InternVL](https://github.com/O
31
 
32
  ```
33
  from datasets import load_dataset
 
 
34
 
35
  mm_mathinstruct = load_dataset("MathLLMs/MM-MathInstruct")
36
  print(mm_mathinstruct)
 
 
 
 
37
  ```
38
 
39
  It should print:
 
31
 
32
  ```
33
  from datasets import load_dataset
34
+ from PIL import Image
35
+ from io import BytesIO
36
 
37
  mm_mathinstruct = load_dataset("MathLLMs/MM-MathInstruct")
38
  print(mm_mathinstruct)
39
+
40
+ # show the last image
41
+ img = Image.open(BytesIO(mm_mathinstruct['train'][-1]['image']))
42
+ img.show()
43
  ```
44
 
45
  It should print: