File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -517,8 +517,8 @@ Then you'll need to use a custom chat handler to load the clip model and process
517
517
{
518
518
" role" : " user" ,
519
519
" 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 " } }
522
522
]
523
523
}
524
524
]
@@ -542,12 +542,12 @@ You can also pull the model from the Hugging Face Hub using the `from_pretrained
542
542
)
543
543
>> > llm.create_chat_completion(
544
544
messages = [
545
- {" role" : " system" , " content" : " You are an assistant who perfectly describes images." },
546
545
{
547
546
" role" : " user" ,
548
547
" 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
+
551
551
]
552
552
}
553
553
]
You can’t perform that action at this time.
0 commit comments