BUAADreamer commited on
Commit
b8a909b
1 Parent(s): 0e71cb1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -65,7 +65,7 @@ processor = AutoProcessor.from_pretrained(model_id)
65
 
66
  text = [processor.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=False)]
67
  images = [Image.open(requests.get(image_file, stream=True).raw)]
68
- inputs = processor(text=prompt, images=images, return_tensors='pt').to(0, torch.float16)
69
 
70
  output = model.generate(**inputs, max_new_tokens=200)
71
  output = processor.batch_decode(output, skip_special_tokens=True)
 
65
 
66
  text = [processor.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=False)]
67
  images = [Image.open(requests.get(image_file, stream=True).raw)]
68
+ inputs = processor(text=text, images=images, return_tensors='pt').to(0, torch.float16)
69
 
70
  output = model.generate(**inputs, max_new_tokens=200)
71
  output = processor.batch_decode(output, skip_special_tokens=True)