diff --git a/python/examples/imdb/benchmark_batch.py b/python/examples/imdb/benchmark_batch.py index 7e8738218395ddc5f3dcb9b070cc52a2712e683b..34c777c7203684dc6cbe3669225148e959978b8b 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')