From d4883413687647e4d813e62ffd9c200a80e8446f Mon Sep 17 00:00:00 2001 From: Hongji Zhu Date: Sun, 4 Feb 2024 11:15:07 +0800 Subject: [PATCH] Update readme --- README.md | 4 ++-- README_zh.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ce56b83..36a3b67 100644 --- a/README.md +++ b/README.md @@ -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) ``` diff --git a/README_zh.md b/README_zh.md index 4fbfa2e..826e9f9 100644 --- a/README_zh.md +++ b/README_zh.md @@ -348,7 +348,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 @@ -357,7 +357,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) ```