提交 1e04816f 编写于 作者: 走神的阿圆's avatar 走神的阿圆

fix (int)port cannot be use in filename

上级 3802c07c
......@@ -107,7 +107,7 @@ class ServingCommand(BaseCommand):
def dump_pid_file(self):
pid = os.getpid()
filepath = os.path.join(CONF_HOME,
"serving_" + self.args.port + ".json")
"serving_" + str(self.args.port) + ".json")
if os.path.exists(filepath):
os.remove(filepath)
with open(filepath, "w") as fp:
......@@ -376,6 +376,7 @@ class ServingCommand(BaseCommand):
str += "\tStart PaddleHub-Serving if specifies this parameter.\n"
str += "2. start bert_service\n"
str += "\tStart Bert Service if specifies this parameter.\n"
str += "\n"
str += "[start] option:\n"
str += "--modules/-m [module1==version, module2==version...]\n"
str += "\tPre-install modules via this parameter list.\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册