andito HF staff commited on
Commit
45822ad
1 Parent(s): 77f80ed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -14
README.md CHANGED
@@ -76,22 +76,10 @@ messages = [
76
  "role": "user",
77
  "content": [
78
  {"type": "image"},
79
- {"type": "text", "text": "What do we see in this image?"}
80
- ]
81
- },
82
- {
83
- "role": "assistant",
84
- "content": [
85
- {"type": "text", "text": "This image shows a city skyline with prominent landmarks."}
86
- ]
87
- },
88
- {
89
- "role": "user",
90
- "content": [
91
  {"type": "image"},
92
- {"type": "text", "text": "And how about this image?"}
93
  ]
94
- }
95
  ]
96
 
97
  # Prepare inputs
@@ -107,6 +95,7 @@ generated_texts = processor.batch_decode(
107
  )
108
 
109
  print(generated_texts[0])
 
110
  ```
111
 
112
 
 
76
  "role": "user",
77
  "content": [
78
  {"type": "image"},
 
 
 
 
 
 
 
 
 
 
 
 
79
  {"type": "image"},
80
+ {"type": "text", "text": "Can you describe the two images?"}
81
  ]
82
+ },
83
  ]
84
 
85
  # Prepare inputs
 
95
  )
96
 
97
  print(generated_texts[0])
98
+ # Assistant: The first image shows a statue of the Statue of Liberty in front of a city skyline. The statue is green and is on a pedestal. The city skyline includes many tall buildings and skyscrapers. The sky is clear and blue. The water in the foreground is calm and blue. The second image shows a bee on a pink flower. The flower is surrounded by green leaves.
99
  ```
100
 
101