提交 4e804c5b 编写于 作者: B barrierye

add NEW_WEB_SERVICE doc

上级 8f5aadc1
...@@ -11,7 +11,7 @@ Paddle Serving implements the [WebService](https://github.com/PaddlePaddle/Servi ...@@ -11,7 +11,7 @@ Paddle Serving implements the [WebService](https://github.com/PaddlePaddle/Servi
```python ```python
class WebService(object): class WebService(object):
def preprocess(self, feed={}, fetch=[]): def preprocess(self, feed={}, fetch=[]):
return feed, fetch return feed, fetch
def postprocess(self, feed={}, fetch=[], fetch_map=None): def postprocess(self, feed={}, fetch=[], fetch_map=None):
return fetch_map return fetch_map
......
...@@ -11,7 +11,7 @@ Paddle Serving实现了[WebService](https://github.com/PaddlePaddle/Serving/blob ...@@ -11,7 +11,7 @@ Paddle Serving实现了[WebService](https://github.com/PaddlePaddle/Serving/blob
```python ```python
class WebService(object): class WebService(object):
def preprocess(self, feed={}, fetch=[]): def preprocess(self, feed={}, fetch=[]):
return feed, fetch return feed, fetch
def postprocess(self, feed={}, fetch=[], fetch_map=None): def postprocess(self, feed={}, fetch=[], fetch_map=None):
return fetch_map return fetch_map
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册