提交 480f15e4 编写于 作者: R root

revert connect endpoint

上级 c4aa3e00
...@@ -23,7 +23,7 @@ args = benchmark_args() ...@@ -23,7 +23,7 @@ args = benchmark_args()
reader = ChineseBertReader({"max_seq_len": 128}) reader = ChineseBertReader({"max_seq_len": 128})
fetch = ["pooled_output"] fetch = ["pooled_output"]
endpoint_list = [':8861'] endpoint_list = ['127.0.0.1:9292']
client = Client() client = Client()
client.load_client_config(args.model) client.load_client_config(args.model)
client.connect(endpoint_list) client.connect(endpoint_list)
......
...@@ -27,7 +27,7 @@ postprocess = RCNNPostprocess("label_list.txt", "output") ...@@ -27,7 +27,7 @@ postprocess = RCNNPostprocess("label_list.txt", "output")
client = Client() client = Client()
client.load_client_config(sys.argv[1]) client.load_client_config(sys.argv[1])
client.connect([':8870']) client.connect(['127.0.0.1:9494'])
im = preprocess(sys.argv[3]) im = preprocess(sys.argv[3])
fetch_map = client.predict( fetch_map = client.predict(
......
...@@ -22,8 +22,8 @@ import io ...@@ -22,8 +22,8 @@ import io
import numpy as np import numpy as np
client = Client() client = Client()
client.connect([':8868']) client.load_client_config(sys.argv[1])
client.connect([':8868']) client.connect(["127.0.0.1:9292"])
reader = LACReader() reader = LACReader()
for line in sys.stdin: for line in sys.stdin:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册