Created by: guru4elephant
please reference https://github.com/PaddlePaddle/Serving/pull/229, https://github.com/PaddlePaddle/Serving/pull/229 is more comprehensive. close this.
startup command for server side
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/uci_housing.tar.gz
tar -xzf uci_housing.tar.gz
python -m paddle_serving_server.web_serve --model uci_housing_model --name uci --thread 10 --port 9292
you can just visit the web service through http post
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:9292/uci/prediction
turn off the proxy before you send post