From 6893458bb5692bc413134d3d2b83c5e464d1ece7 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Wed, 29 Apr 2020 16:05:51 +0800 Subject: [PATCH] fix readme --- README.md | 2 +- README_CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a95dd6a8..3faf8942 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ python image_classification_service_demo.py resnet50_serving_model

``` shell -curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serving.bj.bcebos.com/imagenet-example/daisy.jpg", "fetch": ["score"]}' http://127.0.0.1:9292/image/prediction +curl -H "Content-Type:application/json" -X POST -d '{"feed":[{"url": "https://paddle-serving.bj.bcebos.com/imagenet-example/daisy.jpg"}], "fetch": ["score"]}' http://127.0.0.1:9292/image/prediction ``` - **Request result**: ``` shell diff --git a/README_CN.md b/README_CN.md index 2b91ab9e..266fca33 100644 --- a/README_CN.md +++ b/README_CN.md @@ -171,7 +171,7 @@ python image_classification_service_demo.py resnet50_serving_model

``` shell -curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serving.bj.bcebos.com/imagenet-example/daisy.jpg", "fetch": ["score"]}' http://127.0.0.1:9292/image/prediction +curl -H "Content-Type:application/json" -X POST -d '{"feed":[{"url": "https://paddle-serving.bj.bcebos.com/imagenet-example/daisy.jpg"}], "fetch": ["score"]}' http://127.0.0.1:9292/image/prediction ``` - **返回结果示例**: ``` shell -- GitLab