Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phatvo9 committed Oct 24, 2023
1 parent acc420a commit b3626b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clarifai/models/model_serving/docs/inference_parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This document helps you to create your inference parameters that can be visibale
### JSON file structure:
The file contains a list of object has 4 fields:
* `path` (str): name of your parameter, it must be valid as python variable
* `field_type` (int): the parameter data type is one of {1,2,21,3}, it means {boolean, string, encrypted_string, number} respectively. `Number` means `int` or `float`. `Encrypted_string` is simple a string can be used to store your secrets like API key...
* `field_type` (int): the parameter data type is one of {1,2,21,3}, it means {boolean, string, encrypted_string, number} respectively. `Number` means `int` or `float`. "Encrypted_string is a string that can be used to store your secrets, like API key. The API will not return the values for this as plaintext.
* `default_value`: a default value of the parameter.
* `description` (str): short sentence describes what the parameter does

Expand Down
2 changes: 1 addition & 1 deletion clarifai/models/model_serving/models/default_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def triton_get_predictions(self, input_data, **kwargs):

def _get_preprocess(self, input):
""" preprocess if input is image """
if "name" in input.name:
if "image" in input.name:
h, w, _ = input.dims
if h > -1 and w > -1:
import cv2
Expand Down

0 comments on commit b3626b1

Please sign in to comment.