model/model.py
, we’ll implement model inference and invoke our finished model.
Run model inference
TheModel.predict()
function runs every time the model server is called.
We’ll use the text classification model in predict()
and return the results:
model/model.py
Invoke your finished model
Aftertruss watch
shows that the server is updated, it’s time to invoke your finished model using truss predict
in your terminal:
Invocation