JiaerX commited on
Commit
3c4a22a
·
verified ·
1 Parent(s): ca7f942

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -19,6 +19,7 @@ tags:
19
  ## Quick Start
20
  The model is trained based on the Qwen2.5-VL-3B-Instruct. Here we present an example of the use of inference.
21
  ```
 
22
  from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
23
  from qwen_vl_utils import process_vision_info
24
 
@@ -45,9 +46,9 @@ messages = [
45
  "content": [
46
  {
47
  "type": "image",
48
- "image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSWC5jzin8PaEgo1oXaiITvornP8G4m0ep7Ow&s",
49
  },
50
- {"type": "text", "text": "Which year has the most divergent opinions about Brazil’s economy?"},
51
  ],
52
  }
53
  ]
 
19
  ## Quick Start
20
  The model is trained based on the Qwen2.5-VL-3B-Instruct. Here we present an example of the use of inference.
21
  ```
22
+ import torch
23
  from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
24
  from qwen_vl_utils import process_vision_info
25
 
 
46
  "content": [
47
  {
48
  "type": "image",
49
+ "image": image_path,
50
  },
51
+ {"type": "text", "text": question},
52
  ],
53
  }
54
  ]