Skip to main content

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


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)

Uploaded Source

Built Distribution

truss_utils-0.1.0-py3-none-any.whl (1.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page