From 615f92f033a01e45c101f21c18916f53ee5f3607 Mon Sep 17 00:00:00 2001 From: guru4elephant Date: Tue, 10 Mar 2020 23:22:41 +0800 Subject: [PATCH] add out of box access --- python/paddle_serving_server/web_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_server/web_service.py b/python/paddle_serving_server/web_service.py index 78cc0e6e..a0300a08 100755 --- a/python/paddle_serving_server/web_service.py +++ b/python/paddle_serving_server/web_service.py @@ -71,7 +71,7 @@ class WebService(object): feed=request.json, fetch=fetch, fetch_map=fetch_map) return fetch_map - app_instance.run(host="127.0.0.1", + app_instance.run(host="0.0.0.0", port=self.port, threaded=False, processes=1) -- GitLab