Update README.md
Browse files
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 |
|