Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit efd99f1

Browse filesBrowse files
committed
Update README
1 parent f03326c commit efd99f1
Copy full SHA for efd99f1

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+5-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.