Utilities for use in Truss development
Project description
truss-utils
This package is a repository of common functions that help with developing production AI/ML models with Truss.
Use
In the model.py
of your truss, you can do something like the following:
from truss_utils.image import pil_to_64
class Model:
...
def predict(self, model_input):
# call Stable diffusion
...
return pil_to_b64(image)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
truss_utils-0.1.0.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for truss_utils-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c82136fdf4deee6dfc75896d27955ca3325a62e72019c489743afbcb7cb48c2b |
|
MD5 | 3ea75fb9af46a097769c0dd505a8ac13 |
|
BLAKE2b-256 | d2b1d49ce5fb4554ef9053f010826fba25fe2e62311c5e9b0634f2beaf26ac03 |