Skip to content

Commit af1c864

Browse files
wdp-007yue kun
andauthored
fix code example in mgp-str doc (#22219)
Co-authored-by: yue kun <[email protected]>
1 parent 33d033d commit af1c864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/en/model_doc/mgp-str.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ into a single instance to both extract the input features and decode the predict
5454
>>> url = "https://i.postimg.cc/ZKwLg2Gw/367-14.png"
5555
>>> image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
5656

57-
>>> pixel_values = processor(image, return_tensors="pt").pixel_values
57+
>>> pixel_values = processor(images=image, return_tensors="pt").pixel_values
5858
>>> outputs = model(pixel_values)
5959

6060
>>> generated_text = processor.batch_decode(outputs.logits)['generated_text']

0 commit comments

Comments
 (0)