提交 5362fd87 编写于 作者: H HexToString

change name

上级 88c5a4be
......@@ -13,12 +13,12 @@
# limitations under the License.
# pylint: disable=doc-string-missing
from paddle_serving_client.httpclient import GeneralClient
from paddle_serving_client.httpclient import HttpClient
import sys
import numpy as np
import time
client = GeneralClient()
client = HttpClient()
client.load_client_config(sys.argv[1])
'''
if you want use GRPC-client, set_use_grpc_client(True)
......
......@@ -73,7 +73,7 @@ def data_bytes_number(datalist):
# 可以直接调用需要的http_client_predict/grpc_client_predict
# 例如,如果想使用GRPC方式,set_use_grpc_client(True)
# 或者直接调用grpc_client_predict()
class GeneralClient(object):
class HttpClient(object):
def __init__(self,
ip="0.0.0.0",
port="9393",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册