From 40866639d4cbb3e44bf1e61744965f64b1891332 Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 30 Apr 2020 10:58:31 +0800 Subject: [PATCH] fix code --- python/examples/imdb/benchmark_batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/examples/imdb/benchmark_batch.py b/python/examples/imdb/benchmark_batch.py index 7e873821..34c777c7 100644 --- a/python/examples/imdb/benchmark_batch.py +++ b/python/examples/imdb/benchmark_batch.py @@ -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') -- GitLab