czczup commited on
Commit
c5f6e4f
1 Parent(s): 385bcee

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -101,7 +101,12 @@ generation_config = dict(
101
  )
102
 
103
  question = "请详细描述图片"
104
- response = model.chat(tokenizer, pixel_values, question, generation_config)
 
 
 
 
 
105
  ```
106
 
107
 
 
101
  )
102
 
103
  question = "请详细描述图片"
104
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None)
105
+ print(question, response)
106
+
107
+ question = "请根据图片写一首诗"
108
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history)
109
+ print(question, response)
110
  ```
111
 
112