From c752a734d520b8387f21e97929e0ffa18b646349 Mon Sep 17 00:00:00 2001 From: TeslaZhao Date: Thu, 17 Dec 2020 10:27:55 +0800 Subject: [PATCH] Merge pull request #926 from TeslaZhao/develop Fix invalid variable 'path' --- 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