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

Update README.md

上级 7515abe5
...@@ -58,10 +58,12 @@ python -m paddle_serving_server.web_serve --model uci_housing_model --thread 10 ...@@ -58,10 +58,12 @@ python -m paddle_serving_server.web_serve --model uci_housing_model --thread 10
``` ```
<center> <center>
- thread: Concurrency of current service | Argument | Type | Default | Description |
- port: Exposed port of current service to users |--------------|------|-----------|--------------------------------|
- name: Service name, can be used to generate HTTP request url | `thread` | int | `10` | Concurrency of current service |
- model: Path of paddle model directory to be served | `port` | int | `9292` | Exposed port of current service to users |
| `name` | str | `""` | Service name, can be used to generate HTTP request url |
| `model` | str | `""` | Path of paddle model directory to be served |
</center> </center>
...@@ -74,10 +76,11 @@ curl -H "Content-Type:application/json" -X POST -d '{"x": [0.0137, -0.1136, 0.25 ...@@ -74,10 +76,11 @@ curl -H "Content-Type:application/json" -X POST -d '{"x": [0.0137, -0.1136, 0.25
``` 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
``` ```
| Argument | Type | Default | Description |
- thread: Concurrency of current service |--------------|------|-----------|--------------------------------|
- port: Exposed port of current service to users | `thread` | int | `10` | Concurrency of current service |
- model: Path of paddle model directory to be served | `port` | int | `9292` | Exposed port of current service to users |
| `model` | str | `""` | Path of paddle model directory to be served |
``` python ``` python
# A user can visit rpc service through paddle_serving_client API # A user can visit rpc service through paddle_serving_client API
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册