diff --git a/README.md b/README.md index a95dd6a8697c77e47071a5b9ac6c86502aee98b2..3faf89429a506aa26c6311d457de5716242359a8 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 2b91ab9e75bf6ffedc2df421b1cb40cc651bf8c7..266fca330d7597d6188fa0022e6376bc23149c74 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