Skip to content

Commit

Permalink
fix(model): support inferencing multiple files (#56)
Browse files Browse the repository at this point in the history
Because

- It is convenient to make inferences with multiple files

This commit

- Support making inference with multiple files by adding length of files in the request
  • Loading branch information
Phelan164 authored Apr 5, 2022
1 parent aec6022 commit c821464
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions instill/model/v1alpha/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ message TriggerModelBinaryFileUploadRequest {
string name = 1 [ (google.api.field_behavior) = REQUIRED ];
// Model version
uint64 version = 2 [ (google.api.field_behavior) = REQUIRED ];
// Model content in bytes
bytes bytes = 3 [ (google.api.field_behavior) = REQUIRED ];
// list of image's file length
repeated uint64 file_lengths = 3 [ (google.api.field_behavior) = REQUIRED ];
// Content of images in bytes
bytes bytes = 4 [ (google.api.field_behavior) = REQUIRED ];
}

// TriggerModelBinaryFileUploadResponse represents a response for the output of
Expand Down

0 comments on commit c821464

Please sign in to comment.