Minghao Li commited on
Commit
200cf24
1 Parent(s): fb17309

add torch import

Browse files
Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -26,6 +26,7 @@ Here is how to use this model in PyTorch:
26
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel, AutoFeatureExtractor, XLMRobertaTokenizer
27
  from PIL import Image
28
  import requests
 
29
 
30
  # load image from the IAM database
31
  url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
 
26
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel, AutoFeatureExtractor, XLMRobertaTokenizer
27
  from PIL import Image
28
  import requests
29
+ import torch
30
 
31
  # load image from the IAM database
32
  url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'