diff --git a/python/paddle_serving_server/web_service.py b/python/paddle_serving_server/web_service.py index 539c613d40af7c1f6824fc03ce3733c942816318..1f035db9262ffbd8e031c9b0018877eb2ba6fad2 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 c086e393e537a0024d0e605c281fb9344a6ee754..8389f92cbfda7a209ff0fe4a77497ba2db1dbe1f 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')