Skip to content

Commit d975d13

Browse files
laitifranzRobinPicard
authored andcommitted
Update text input prompt to align with author's preference
1 parent 99093e0 commit d975d13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/models/test_transformers_multimodal.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_transformers_multimodal_chat(model, image):
9898
{
9999
"role": "user",
100100
"content": [
101-
"What's on this image?",
101+
"Describe this image in one sentence:",
102102
Image(image),
103103
],
104104
},
@@ -113,7 +113,7 @@ def test_transformers_multimodal_chat(model, image):
113113
{
114114
"role": "user",
115115
"content": [
116-
{"type": "text", "text": "What's on this image?"},
116+
{"type": "text", "text": "Describe this image in one sentence:"},
117117
{"type": "image", "image": Image(image)},
118118
],
119119
},
@@ -234,7 +234,7 @@ def test_transformers_multimodal_batch(model, image):
234234
{
235235
"role": "user",
236236
"content": [
237-
"What's on this image?",
237+
"Describe this image in one sentence:",
238238
Image(image),
239239
],
240240
},
@@ -244,7 +244,7 @@ def test_transformers_multimodal_batch(model, image):
244244
{
245245
"role": "user",
246246
"content": [
247-
"What's on this image?",
247+
"Describe this image in one sentence:",
248248
Image(image),
249249
],
250250
},
@@ -262,7 +262,7 @@ def test_transformers_multimodal_batch(model, image):
262262
{
263263
"role": "user",
264264
"content": [
265-
{"type": "text", "text": "What's on this image?"},
265+
{"type": "text", "text": "Describe this image in one sentence:"},
266266
{"type": "image", "image": Image(image)},
267267
],
268268
},
@@ -272,7 +272,7 @@ def test_transformers_multimodal_batch(model, image):
272272
{
273273
"role": "user",
274274
"content": [
275-
{"type": "text", "text": "What's on this image?"},
275+
{"type": "text", "text": "Describe this image in one sentence:"},
276276
{"type": "image", "image": Image(image)},
277277
],
278278
},

0 commit comments

Comments
 (0)