RaushanTurganbay HF staff commited on
Commit
e66fcaa
1 Parent(s): f62124c

update processor kwargs

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -64,7 +64,7 @@ conversation = [
64
  ]
65
  prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
66
 
67
- inputs = processor(prompt, image, return_tensors="pt").to("cuda:0")
68
 
69
  # autoregressively complete prompt
70
  output = model.generate(**inputs, max_new_tokens=100)
 
64
  ]
65
  prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
66
 
67
+ inputs = processor(images=image, text=prompt, return_tensors="pt").to("cuda:0")
68
 
69
  # autoregressively complete prompt
70
  output = model.generate(**inputs, max_new_tokens=100)