inputs
Contain classes used to define the inputs of a model.
Audio
dataclass
Contains an audio that can be passed to a multimodal model.
Provide one or several instances of this class along with a text prompt
in a list as the model_input
argument to a model that supports audio
processing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
audio
|
Any
|
The audio to use in the text generation. |
required |
Source code in outlines/inputs.py
Image
dataclass
Contains an image that can be passed to a multimodal model.
Provide one or several instances of this class along with a text prompt
in a list as the model_input
argument to a model that supports vision.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image
|
Image
|
The image to use in the text generation. |
required |
Source code in outlines/inputs.py
Video
dataclass
Contains a video that can be passed to a multimodal model.
Provide one or several instances of this class along with a text prompt
in a list as the model_input
argument to a model that supports video
processing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
video
|
Any
|
The video to use in the text generation. |
required |