未验证 提交 b50fa1ea 编写于 作者: B Bin Long 提交者: GitHub

Merge pull request #321 from ShenYuhan/add_stats_bases

fix (int)port cannot be use in filename
...@@ -107,7 +107,7 @@ class ServingCommand(BaseCommand): ...@@ -107,7 +107,7 @@ class ServingCommand(BaseCommand):
def dump_pid_file(self): def dump_pid_file(self):
pid = os.getpid() pid = os.getpid()
filepath = os.path.join(CONF_HOME, filepath = os.path.join(CONF_HOME,
"serving_" + self.args.port + ".json") "serving_" + str(self.args.port) + ".json")
if os.path.exists(filepath): if os.path.exists(filepath):
os.remove(filepath) os.remove(filepath)
with open(filepath, "w") as fp: with open(filepath, "w") as fp:
...@@ -376,6 +376,7 @@ class ServingCommand(BaseCommand): ...@@ -376,6 +376,7 @@ class ServingCommand(BaseCommand):
str += "\tStart PaddleHub-Serving if specifies this parameter.\n" str += "\tStart PaddleHub-Serving if specifies this parameter.\n"
str += "2. start bert_service\n" str += "2. start bert_service\n"
str += "\tStart Bert Service if specifies this parameter.\n" str += "\tStart Bert Service if specifies this parameter.\n"
str += "\n"
str += "[start] option:\n" str += "[start] option:\n"
str += "--modules/-m [module1==version, module2==version...]\n" str += "--modules/-m [module1==version, module2==version...]\n"
str += "\tPre-install modules via this parameter list.\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.
先完成此消息的编辑!
想要评论请 注册