rp-yu commited on
Commit
ec4ac76
·
verified ·
1 Parent(s): 5264308

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -105,7 +105,7 @@ text = processor.apply_chat_template(
105
  messages, tokenize=False, add_generation_prompt=True, add_vision_id=False
106
  )
107
  images = [
108
- Image.open(requests.get(image_url, stream=True).raw).convert("RGB").resize((336, 336), Image.LANCZOS)
109
  ]
110
 
111
  inputs = processor(
@@ -140,6 +140,8 @@ generations = [
140
 
141
  for j in range(len(messages)):
142
  print("output:", j, generations[j].split(processor.tokenizer.eos_token)[0])
 
 
143
  ```
144
 
145
  ---
 
105
  messages, tokenize=False, add_generation_prompt=True, add_vision_id=False
106
  )
107
  images = [
108
+ Image.open(requests.get(image_url, stream=True).raw).convert("RGB")
109
  ]
110
 
111
  inputs = processor(
 
140
 
141
  for j in range(len(messages)):
142
  print("output:", j, generations[j].split(processor.tokenizer.eos_token)[0])
143
+
144
+ # output: 0 In the image, a woman wearing a shirt with a plaid and a dog are sitting together on a beach. The sun appears to be setting in the background, creating a warm and serene atmosphere.
145
  ```
146
 
147
  ---