From 2fceba86f945cb78c4411dfb82e80adeebe1f52d Mon Sep 17 00:00:00 2001 From: lvhan028 Date: Thu, 1 Feb 2024 18:19:07 +0800 Subject: [PATCH] Update deployment example by changing list of string to string --- README.md | 2 +- README_zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) ```