Update readme

This commit is contained in:
Hongji Zhu
2024-02-04 11:15:07 +08:00
parent 1535539ee8
commit d488341368
2 changed files with 4 additions and 4 deletions

View File

@@ -340,7 +340,7 @@ im_64 = img2base64('./assets/worldmap_ck.jpg')
msgs = [{"role": "user", "content": "What is interesting about this image?"}]
inputs = {"image": im_64, "question": json.dumps(msgs)}
answer = chat_model.process(inputs)
answer = chat_model.chat(inputs)
print(answer)
# Second round chat
@@ -349,7 +349,7 @@ msgs.append({"role": "assistant", "content": answer})
msgs.append({"role": "user", "content": "Where is China in the image"})
inputs = {"image": im_64, "question": json.dumps(msgs)}
answer = chat_model.process(inputs)
answer = chat_model.chat(inputs)
print(answer)
```