Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efd99f1

Browse files
committed
Update README
1 parent f03326c commit efd99f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ Then you'll need to use a custom chat handler to load the clip model and process
517517
{
518518
"role": "user",
519519
"content": [
520-
{"type": "image_url", "image_url": {"url": "https://.../image.png"}},
521-
{"type" : "text", "text": "Describe this image in detail please."}
520+
{"type" : "text", "text": "What's in this image?"},
521+
{"type": "image_url", "image_url": {"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" } }
522522
]
523523
}
524524
]
@@ -542,12 +542,12 @@ You can also pull the model from the Hugging Face Hub using the `from_pretrained
542542
)
543543
>>> llm.create_chat_completion(
544544
messages = [
545-
{"role": "system", "content": "You are an assistant who perfectly describes images."},
546545
{
547546
"role": "user",
548547
"content": [
549-
{"type": "image_url", "image_url": {"url": "https://.../image.png"}},
550-
{"type" : "text", "text": "Describe this image in detail please."}
548+
{"type" : "text", "text": "What's in this image?"},
549+
{"type": "image_url", "image_url": {"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" } }
550+
551551
]
552552
}
553553
]

0 commit comments

Comments
 (0)