Text Generation
Transformers
Safetensors
imp
custom_code
Oyoy1235 commited on
Commit
e6f6455
1 Parent(s): dc25072
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -37,7 +37,7 @@ text = "A chat between a curious user and an artificial intelligence assistant.
37
  image = Image.open("images/bus.jpg")
38
 
39
  input_ids = tokenizer(text, return_tensors='pt').input_ids
40
- image_tensor = model.process_images([image])
41
 
42
  #Generate the answer
43
  output_ids = model.generate(
 
37
  image = Image.open("images/bus.jpg")
38
 
39
  input_ids = tokenizer(text, return_tensors='pt').input_ids
40
+ image_tensor = model.image_preprocess(image)
41
 
42
  #Generate the answer
43
  output_ids = model.generate(