Skip to content

Commit 7e14cff

Browse files
committed
Fix the right predictions api operation method
1 parent 881c190 commit 7e14cff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/github/tadayosi/torchserve/client/impl/DefaultInference.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public Response ping() throws ApiException {
5454
@Override
5555
public Object predictions(String modelName, Object body) throws ApiException {
5656
try {
57-
return api.predictions(body, modelName);
57+
// /predictions/{model_name}
58+
return api.predictions_1(body, modelName);
5859
} catch (com.github.tadayosi.torchserve.client.inference.invoker.ApiException e) {
5960
throw new ApiException(e);
6061
}

0 commit comments

Comments
 (0)