From b8b03bcd7d81cba800defd8fa5045a316c7a8720 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 1 Jun 2020 12:36:49 +0000 Subject: [PATCH] fix web service postprocess --- python/paddle_serving_server_gpu/web_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_server_gpu/web_service.py b/python/paddle_serving_server_gpu/web_service.py index 23284532..76721de8 100644 --- a/python/paddle_serving_server_gpu/web_service.py +++ b/python/paddle_serving_server_gpu/web_service.py @@ -131,7 +131,7 @@ class WebService(object): for key in fetch_map: fetch_map[key] = fetch_map[key].tolist() result = self.postprocess( - feed=feed, fetch=fetch, fetch_map=fetch_map) + feed=request.json["feed"], fetch=fetch, fetch_map=fetch_map) result = {"result": result} except ValueError: result = {"result": "Request Value Error"} -- GitLab