diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 163f4f74429066581aa17cc78b3ab00947ba4d77..b810e3139803bd363c771c6f655cef6595177dc8 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -83,7 +83,7 @@ function python_test_fit_a_line() { check_cmd "python test_client.py uci_housing_client/serving_client_conf.prototxt > /dev/null" ps -ef | grep "paddle_serving_server" | grep -v grep | awk '{print $2}' | xargs kill # test web - check_cmd "python -m paddle_serving_server.web_serve --model uci_housing_model/ --name uci --port 9399 --name uci > /dev/null &" + check_cmd "python -m paddle_serving_server.serve --model uci_housing_model/ --name uci --port 9399 --name uci > /dev/null &" sleep 5 check_cmd "curl -H \"Content-Type:application/json\" -X POST -d '{\"x\": [0.0137, -0.1136, 0.2553, -0.0692, 0.0582, -0.0727, -0.1583, -0.0584, 0.6283, 0.4919, 0.1856, 0.0795, -0.0332], \"fetch\":[\"price\"]}' http://127.0.0.1:9399/uci/prediction" ps -ef | grep "paddle_serving_server" | grep -v grep | awk '{print $2}' | xargs kill