nielsr HF staff commited on
Commit
71aa97f
1 Parent(s): 682d58e

Add more appropriate image to the code example

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -28,7 +28,8 @@ from transformers import TrOCRProcessor, VisionEncoderDecoderModel
28
  from PIL import Image
29
  import requests
30
 
31
- url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
 
32
  image = Image.open(requests.get(url, stream=True).raw)
33
 
34
  processor = TrOCRProcessor.from_pretrained('microsoft/trocr-large-printed')
 
28
  from PIL import Image
29
  import requests
30
 
31
+ # load image from the IAM database (actually this model is meant to be used on printed text)
32
+ url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
33
  image = Image.open(requests.get(url, stream=True).raw)
34
 
35
  processor = TrOCRProcessor.from_pretrained('microsoft/trocr-large-printed')