提交 0d52e688 编写于 作者: D dongdaxiang

change get_prediction

上级 51229597
......@@ -55,7 +55,7 @@ class WebService(object):
"{}/serving_server_conf.prototxt".format(self.model_config))
self.client_service.connect(["0.0.0.0:{}".format(self.port + 1)])
def get_prediction():
def get_prediction(self, request):
if not request.json:
abort(400)
if "fetch" not in request.json:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册