提交 1445ea3a 编写于 作者: G gongweibao

add get_config test=develop

上级 edcf1132
......@@ -396,7 +396,7 @@ class MultiLangClient(object):
self._parse_model_config(proto_txt)
def _load_client_config(self, stub):
req= pb2.ServingConfig()
req= pb2.EmptyRequest()
self._config = self.stub_.get_client_proto_text(req)
self._parse_model_config(config.proto_txt)
......
......@@ -605,7 +605,7 @@ class MultiLangServer(object):
p_bserver.start()
server = grpc.server(
futures.ThreadPoolExecutor(max_workers=self.worker_num_))
pb2_grpc.add_MultiLangGeneralModelServiceServicer_to_server(
grpc_pb2.add_MultiLangGeneralModelServiceServicer_to_server(
MultiLangServerService(self.model_config_path_,
["0.0.0.0:{}".format(self.port_list_[0])]),
server)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册