未验证 提交 9149e274 编写于 作者: D Dong Daxiang 提交者: GitHub

Update README.md

上级 5a71b4ce
...@@ -30,14 +30,14 @@ pip install paddle-serving-server ...@@ -30,14 +30,14 @@ pip install paddle-serving-server
## Quick Start Example ## Quick Start Example
#### download trained model ### download trained model
``` shell ``` shell
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/uci_housing.tar.gz wget --no-check-certificate https://paddle-serving.bj.bcebos.com/uci_housing.tar.gz
tar -xzf uci_housing.tar.gz tar -xzf uci_housing.tar.gz
``` ```
Paddle Serving provides HTTP and RPC based service for users to access Paddle Serving provides HTTP and RPC based service for users to access
#### HTTP service ### HTTP service
``` shell ``` shell
python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9292 --name uci python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9292 --name uci
...@@ -46,12 +46,12 @@ python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --po ...@@ -46,12 +46,12 @@ python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --po
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 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
``` ```
#### RPC service ### RPC service
``` shell ``` shell
python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9292 python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9292
``` ```
Python client api python client api
``` python ``` python
from paddle_serving_client import Client from paddle_serving_client import Client
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册