From ce2fc05301bbf500d83f4e47bada064f3c94db9d Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 1 Jun 2020 07:28:44 +0000 Subject: [PATCH] fix ci --- tools/serving_build.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 8e78e13e..da662d32 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash - +set -x function unsetproxy() { HTTP_PROXY_TEMP=$http_proxy HTTPS_PROXY_TEMP=$https_proxy @@ -454,15 +454,16 @@ function python_test_lac() { cd lac # pwd: /Serving/python/examples/lac case $TYPE in CPU) - sh get_data.sh - check_cmd "python -m paddle_serving_server.serve --model jieba_server_model/ --port 9292 &" + python -m paddle_serving_app.package --get_model lac + tar -xzvf lac.tar.gz + check_cmd "python -m paddle_serving_server.serve --model lac_model/ --port 9292 &" sleep 5 - check_cmd "echo \"我爱北京天安门\" | python lac_client.py jieba_client_conf/serving_client_conf.prototxt lac_dict/" + check_cmd "echo \"我爱北京天安门\" | python lac_client.py lac_client/serving_client_conf.prototxt " echo "lac CPU RPC inference pass" kill_server_process unsetproxy # maybe the proxy is used on iPipe, which makes web-test failed. - check_cmd "python lac_web_service.py jieba_server_model/ lac_workdir 9292 &" + check_cmd "python lac_web_service.py lac_model/ lac_workdir 9292 &" sleep 5 check_cmd "curl -H \"Content-Type:application/json\" -X POST -d '{\"feed\":[{\"words\": \"我爱北京天安门\"}], \"fetch\":[\"word_seg\"]}' http://127.0.0.1:9292/lac/prediction" # check http code -- GitLab