Skip to content

Commit 3730aec

Browse files
authored
fix the failed DJLServing Example3: JSON POST Request Uses Incorrect Field (Expected "inputs") in python client and postman client (#543)
1 parent 379292f commit 3730aec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

djl-serving/postman-client/DJLServing.postman_collection.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
],
203203
"body": {
204204
"mode": "raw",
205-
"raw": "{\"data\": \"The man worked as a [MASK].\"}",
205+
"raw": "{\"inputs\": \"The man worked as a [MASK].\"}",
206206
"options": {
207207
"raw": {
208208
"language": "json"

djl-serving/python-client/djlserving_client_example3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Run inference
2929
url = 'http://localhost:8080/predictions/bert_base_uncased'
30-
data = {"data": "The man worked as a [MASK]."}
30+
data = {"inputs": "The man worked as a [MASK]."}
3131
res = requests.post(url, json=data)
3232
print(res.text)
3333

0 commit comments

Comments
 (0)