Commit ac8f177a authored by 郭羽's avatar 郭羽

service model 优化

parent a79b70c4
......@@ -197,7 +197,7 @@ def test(df_train):
# pre_data = pre_data.replace("'",'"')
print(pre_data)
timestmp1 = int(round(time.time()*1000))
r = requests.post('http://tensorserving:80/v1/models/service:predict', data=pre_data)
r = requests.post('http://10.27.248.223:80/v1/models/service:predict', data=pre_data)
print("测试样本数:{},测试耗时ms:{}".format(10,int(round(time.time()*1000))- timestmp1))
if __name__ == '__main__':
......
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