Skip to content

Commit

Permalink
change gateway port back to 8003
Browse files Browse the repository at this point in the history
  • Loading branch information
nadinet committed Mar 26, 2021
1 parent 405c3ba commit 51eee08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/models/sklearn_iris/sklearn_iris.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"metadata": {},
"outputs": [],
"source": [
"res=!curl -s http://localhost:80/seldon/seldon/seldon-deployment-example/api/v0.1/predictions -H \"Content-Type: application/json\" -d '{\"data\":{\"ndarray\":[[5.964,4.006,2.081,1.031]]}}'"
"res=!curl -s http://localhost:8003/seldon/seldon/seldon-deployment-example/api/v0.1/predictions -H \"Content-Type: application/json\" -d '{\"data\":{\"ndarray\":[[5.964,4.006,2.081,1.031]]}}'"
]
},
{
Expand Down Expand Up @@ -247,7 +247,7 @@
"source": [
"from seldon_core.seldon_client import SeldonClient\n",
"sc = SeldonClient(deployment_name=\"seldon-deployment-example\",namespace=\"seldon\")\n",
"res = sc.predict(gateway=\"istio\",gateway_endpoint=\"localhost:80\", transport=\"rest\",raw_data = {\"data\":{\"ndarray\":[[5.964,4.006,2.081,1.031]]}})\n",
"res = sc.predict(gateway=\"istio\",gateway_endpoint=\"localhost:8003\", transport=\"rest\",raw_data = {\"data\":{\"ndarray\":[[5.964,4.006,2.081,1.031]]}})\n",
"print(res.response)\n",
"assert(res.success==True)"
]
Expand Down Expand Up @@ -279,7 +279,7 @@
"source": [
"from seldon_core.utils import json_to_seldon_message\n",
"proto_raw_data = json_to_seldon_message({\"data\":{\"ndarray\":[[5.964,4.006,2.081,1.031]]}})\n",
"res = sc.predict(gateway=\"istio\",gateway_endpoint=\"localhost:80\", transport=\"grpc\",raw_data = proto_raw_data)\n",
"res = sc.predict(gateway=\"istio\",gateway_endpoint=\"localhost:8003\", transport=\"grpc\",raw_data = proto_raw_data)\n",
"print(res)\n",
"assert(res.success==True)"
]
Expand Down

0 comments on commit 51eee08

Please sign in to comment.