JustinLin610 commited on
Commit
31aa84f
1 Parent(s): 74391db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -30,5 +30,5 @@ To use it in Transformers, please refer to https://github.com/OFA-Sys/OFA/tree/f
30
  >>> patch_img = patch_resize_transform(img).unsqueeze(0)
31
 
32
  >>> gen = model.generate(inputs, patch_images=patch_img, num_beams=4)
33
- >>> print(tokenizer.decode(gen, skip_special_tokens=True, clean_up_tokenization_spaces=False))
34
  ```
 
30
  >>> patch_img = patch_resize_transform(img).unsqueeze(0)
31
 
32
  >>> gen = model.generate(inputs, patch_images=patch_img, num_beams=4)
33
+ >>> print(tokenizer.batch_decode(gen, skip_special_tokens=True))
34
  ```