提交 2c95dd9f 编写于 作者: D Dong Daxiang 提交者: GitHub

Update README.md

上级 a6417e15
...@@ -27,20 +27,10 @@ pip install paddle-serving-client ...@@ -27,20 +27,10 @@ pip install paddle-serving-client
pip install paddle-serving-server pip install paddle-serving-server
``` ```
### Save Model with Paddle ### Download models and start server
``` python
# training scripts for uci housing price regression
# after training, save model with serving client API
# we are working on integrate this API with Paddle API
import paddle_serving_client.io as serving_io
serving_io.save_model(
"uci_housing_model", "uci_housing_client",
{"x": x}, {"price": y_predict}, fluid.default_main_program())
```
### Server side launch command
``` shell ``` shell
wget https://paddle-serving.bj.bcebos.com/uci_housing_example%2Fuci_housing.tar.gz
tar -xzf uci_housing.tar.gz
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
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册