diff --git a/docs/docs_ch/tutorial/serving.md b/docs/docs_ch/tutorial/serving.md index 9367e503f23a3d93c024be9e5d97c7989071ded9..bc5f1f42f3561689f6870a6033022db1a0a70d84 100755 --- a/docs/docs_ch/tutorial/serving.md +++ b/docs/docs_ch/tutorial/serving.md @@ -167,7 +167,7 @@ if __name__ == "__main__": text = ["今天是个好日子", "天气预报说今天要下雨"] # 以key的方式指定text传入预测方法的时的参数,此例中为"data" # 对应本地部署,则为lac.analysis_lexical(data=text, batch_size=1) - data = {"texts": text, "batch_size": 1} + data = {"text": text, "batch_size": 1} # 指定预测方法为lac并发送post请求,content-type类型应指定json方式 url = "http://127.0.0.1:8866/predict/lac" # 指定post请求的headers为application/json方式