From 76285efc7bf8488da21d0a79e3696c667dd14994 Mon Sep 17 00:00:00 2001 From: TeslaZhao Date: Tue, 15 Dec 2020 20:07:16 +0800 Subject: [PATCH] Fix invalid params --- python/paddle_serving_server/web_service.py | 2 +- python/paddle_serving_server_gpu/web_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle_serving_server/web_service.py b/python/paddle_serving_server/web_service.py index 539c613d..1f035db9 100644 --- a/python/paddle_serving_server/web_service.py +++ b/python/paddle_serving_server/web_service.py @@ -58,7 +58,7 @@ class WebService(object): if os.path.isdir(model_config): client_config = "{}/serving_server_conf.prototxt".format( model_config) - elif os.path.isfile(path): + elif os.path.isfile(model_config): client_config = model_config model_conf = m_config.GeneralModelConfig() f = open(client_config, 'r') diff --git a/python/paddle_serving_server_gpu/web_service.py b/python/paddle_serving_server_gpu/web_service.py index c086e393..8389f92c 100644 --- a/python/paddle_serving_server_gpu/web_service.py +++ b/python/paddle_serving_server_gpu/web_service.py @@ -64,7 +64,7 @@ class WebService(object): if os.path.isdir(model_config): client_config = "{}/serving_server_conf.prototxt".format( model_config) - elif os.path.isfile(path): + elif os.path.isfile(model_config): client_config = model_config model_conf = m_config.GeneralModelConfig() f = open(client_config, 'r') -- GitLab