scikkk commited on
Commit
42677bb
·
verified ·
1 Parent(s): ecffb27

Add files using upload-large-folder tool

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