Skip to main content
In this guide we will show you how to infer various types of models on the truefoundry platform, we have provided the Python snippet of all the model tasks supported on truefoundry.

Text Classification

The output will be an array of classes with their score.

Zero-Shot Classification

The output will look something like this.

Token Classification

The output will be subject to change based on the mode, for NER classification it would look like this.

Fill Mask

The output will be the array of words with the percentage of how likely a work can fit and replace [MASK]

Text to Image

The above code will call the api and then it will save the image as image.png in root directory.

Image to text

The response will be something like this

Translation

The ouput will containt the translated text

Object Detection

The output will contain the labels along with the co-ordinates of box

Text Generation(Chat Completion)

This will return the generated text based on the the chat or messages

Text Generation(Completion)

The model will try to complete the prompt

Summarization

The output will be summarized text.