Skip to content

Commit e0efd66

Browse files
author
Jagadeesh J
authored
Merge branch 'master' into kserve-class-rename
2 parents ca4af7b + cef8cc5 commit e0efd66

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/inference_api.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ or:
6161
curl http://localhost:8080/predictions/resnet-18 -F "data=@kitten_small.jpg"
6262
```
6363

64+
To get predictions from the loaded model which expects multiple inputs
65+
```bash
66+
curl http://localhost:8080/predictions/squeezenet1_1 -F 'data=@docs/images/dogs-before.jpg' -F 'data=@docs/images/kitten_small.jpg'
67+
68+
or:
69+
70+
import requests
71+
72+
res = requests.post("http://localhost:8080/predictions/squeezenet1_1", files={'data': open('docs/images/dogs-before.jpg', 'rb'), 'data': open('docs/images/kitten_small.jpg', 'rb')})
73+
```
6474
To get predictions from a specific version of each loaded model, make a REST call to `/predictions/{model_name}/{version}`:
6575

6676
* POST /predictions/{model_name}/{version}

0 commit comments

Comments
 (0)