提交 40866639 编写于 作者: B barrierye

fix code

上级 830ef619
......@@ -57,7 +57,7 @@ def single_func(idx, resource):
feed_batch.append({"words": word_ids})
r = requests.post(
"http://{}/imdb/prediction".format(args.endpoint),
data={"feed": feed_batch,
json={"feed": feed_batch,
"fetch": ["prediction"]})
if r.status_code != 200:
print('HTTP status code -ne 200')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册