提交 76285efc 编写于 作者: T TeslaZhao

Fix invalid params

上级 1715631f
...@@ -58,7 +58,7 @@ class WebService(object): ...@@ -58,7 +58,7 @@ class WebService(object):
if os.path.isdir(model_config): if os.path.isdir(model_config):
client_config = "{}/serving_server_conf.prototxt".format( client_config = "{}/serving_server_conf.prototxt".format(
model_config) model_config)
elif os.path.isfile(path): elif os.path.isfile(model_config):
client_config = model_config client_config = model_config
model_conf = m_config.GeneralModelConfig() model_conf = m_config.GeneralModelConfig()
f = open(client_config, 'r') f = open(client_config, 'r')
......
...@@ -64,7 +64,7 @@ class WebService(object): ...@@ -64,7 +64,7 @@ class WebService(object):
if os.path.isdir(model_config): if os.path.isdir(model_config):
client_config = "{}/serving_server_conf.prototxt".format( client_config = "{}/serving_server_conf.prototxt".format(
model_config) model_config)
elif os.path.isfile(path): elif os.path.isfile(model_config):
client_config = model_config client_config = model_config
model_conf = m_config.GeneralModelConfig() model_conf = m_config.GeneralModelConfig()
f = open(client_config, 'r') f = open(client_config, 'r')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册