提交 bcd17e25 编写于 作者: B barriery

add readme

上级 4b969191
# Default Pipeline Web Service
This document will takes UCI service as an example to introduce how to use DefaultPipelineWebService.
## Get model
```
sh get_data.sh
```
## Start server
```
python web_service.py &>log.txt &
```
## Http test
```
curl -X POST -k http://localhost:18080/prediction -d '{"key": ["x"], "value": ["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"]}'
```
## More
`web_service.py` and `local_pipeline_server.py` are essentially the same.
......@@ -197,9 +197,6 @@ class Server(object):
self.gpuid = 0
self.model_config_paths = None # for multi-model in a workflow
def get_fetch_list(self):
return [var.alias_name for var in self.model_conf.fetch_var]
def set_max_concurrency(self, concurrency):
self.max_concurrency = concurrency
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册