4 ms·
Looks interesting, what if I need to write some logic (pre/post prediction) in the prediction server?
by gorg93 4y ago
Looks interesting, what if I need to write some logic (pre/post prediction) in the prediction server?
- b10_bola 4y agoEvery time that you make a truss to package your model, you can add custom pre/post processing to every request/response. We've done our best to document it. https://truss.baseten.co/reference/structure#model https://truss.baseten.co/reference/structure#model https://truss.baseten.co/develop/processing https://truss.baseten.co/develop/processing Take a look at `{truss_name}/model/model.py` to add the code. Please open up an issue or PR if you think we can improve on the documentation!