czczup commited on
Commit
4fc560d
1 Parent(s): 5e3932e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -131,7 +131,12 @@ generation_config = dict(
131
  )
132
 
133
  question = "请详细描述图片"
134
- response = model.chat(tokenizer, pixel_values, question, generation_config)
 
 
 
 
 
135
  ```
136
 
137
 
 
131
  )
132
 
133
  question = "请详细描述图片"
134
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None)
135
+ print(question, response)
136
+
137
+ question = "请根据图片写一首诗"
138
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history)
139
+ print(question, response)
140
  ```
141
 
142