ydshieh HF staff commited on
Commit
823ed9f
1 Parent(s): bd2073f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -36,7 +36,7 @@ image = Image.open(requests.get(url, stream=True).raw)
36
  image.save("new_image.jpg")
37
  image = Image.open("new_image.jpg")
38
 
39
- inputs = processor(text=prompt, images=image, return_tensors="pt", add_eos_token=False)
40
 
41
  generated_ids = model.generate(
42
  pixel_values=inputs["pixel_values"],
@@ -91,7 +91,7 @@ image = Image.open(requests.get(url, stream=True).raw)
91
 
92
  def run_example(prompt):
93
 
94
- inputs = processor(text=prompt, images=image, return_tensors="pt", add_eos_token=False)
95
  generated_ids = model.generate(
96
  pixel_values=inputs["pixel_values"],
97
  input_ids=inputs["input_ids"],
 
36
  image.save("new_image.jpg")
37
  image = Image.open("new_image.jpg")
38
 
39
+ inputs = processor(text=prompt, images=image, return_tensors="pt")
40
 
41
  generated_ids = model.generate(
42
  pixel_values=inputs["pixel_values"],
 
91
 
92
  def run_example(prompt):
93
 
94
+ inputs = processor(text=prompt, images=image, return_tensors="pt")
95
  generated_ids = model.generate(
96
  pixel_values=inputs["pixel_values"],
97
  input_ids=inputs["input_ids"],