diff --git a/README.md b/README.md index 0c81e46..c6d6e55 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ With only 4 lines of codes, you can perform `internlm2-chat-7b` inference after ```python from lmdeploy import pipeline pipe = pipeline("internlm/internlm2-chat-7b") -response = pipe(["Hi, pls intro yourself", "Shanghai is"]) +response = pipe("Hi, pls intro yourself") print(response) ``` diff --git a/README_zh-CN.md b/README_zh-CN.md index 8c2c94c..1973d6a 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -203,7 +203,7 @@ streamlit run ./chat/web_demo.py ```python from lmdeploy import pipeline pipe = pipeline("internlm/internlm2-chat-7b") -response = pipe(["Hi, pls intro yourself", "Shanghai is"]) +response = pipe("Hi, pls intro yourself") print(response) ```