You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"role": "user", "content": "You are a helpful assistant that helps me described pictures."},
174
+
{"role": "assistant", "content": "I'd be happy to help you describe pictures! Please go ahead and share an image"},
175
+
{
176
+
"role": "user",
177
+
"content": ["Describe briefly the image", Image(get_image("https://upload.wikimedia.org/wikipedia/commons/2/25/Siam_lilacpoint.jpg"))]
178
+
},
179
+
])
180
+
181
+
# Call the model to generate a response
182
+
response = model(prompt, max_new_tokens=50)
183
+
print(response) # 'The image shows a light-colored cat with a white chest...'
184
+
```
185
+
186
+
135
187
### Batching
136
188
The `TransformersMultiModal` model supports batching through the `batch` method. To use it, provide a list of prompts (using the formats described above) to the `batch` method. You will receive as a result a list of completions.
0 commit comments