From 0686142fe9ab04afa08d53c479c37c56854a843f Mon Sep 17 00:00:00 2001 From: dongdaxiang Date: Sat, 18 Apr 2020 06:12:30 +0800 Subject: [PATCH] fix typo --- python/paddle_serving_server/web_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle_serving_server/web_service.py b/python/paddle_serving_server/web_service.py index f6e33d7e..ca43426c 100755 --- a/python/paddle_serving_server/web_service.py +++ b/python/paddle_serving_server/web_service.py @@ -63,7 +63,7 @@ class WebService(object): try: feed, fetch = self.preprocess(request.json, request.json["fetch"]) if isinstance(feed, list): - fetch_map_batch = client_service.predict( + fetch_map_batch = self.client_service.predict( feed_batch=feed, fetch=fetch) fetch_map_batch = self.postprocess( feed=request.json, fetch=fetch, fetch_map=fetch_map_batch) @@ -73,7 +73,7 @@ class WebService(object): elif isinstance(feed, dict): if "fetch" in feed: del feed["fetch"] - fetch_map = client_service.predict(feed=feed, fetch=fetch) + fetch_map = self.client_service.predict(feed=feed, fetch=fetch) for key in fetch_map: fetch_map[key] = fetch_map[key][0].tolist() result = self.postprocess( -- GitLab