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