Skip to main content
To complete model/model.py, we’ll implement model inference and invoke our finished model.

Run model inference

The Model.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

After truss watch shows that the server is updated, it’s time to invoke your finished model using truss predict in your terminal: Invocation
Response