Commit be8de455 authored by 郭羽's avatar 郭羽

service model 优化

parent 61864bf7
......@@ -180,7 +180,7 @@ def test(df_train):
pre_data = {"inputs":ddd}
pre_data = json.dumps(pre_data)
# pre_data = pre_data.replace("'",'"')
# print(pre_data)
print(pre_data)
timestmp1 = int(round(time.time()*1000))
r = requests.post('http://tensorserving:80/v1/models/service:predict', data=pre_data)
print("测试样本数:{},测试耗时ms:{}".format(10,int(round(time.time()*1000))- timestmp1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment