MixTex commited on
Commit
e11ffde
1 Parent(s): 5a5d469

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -15,9 +15,9 @@ from transformers import AutoTokenizer, VisionEncoderDecoderModel, AutoImageProc
15
  from PIL import Image
16
  import requests
17
 
18
- feature_extractor = AutoImageProcessor.from_pretrained("MixTex/ZhEn_Latex_OCR")
19
- tokenizer = AutoTokenizer.from_pretrained("MixTex/ZhEn_Latex_OCR", max_len=296)
20
- model = VisionEncoderDecoderModel.from_pretrained("MixTex/ZhEn_Latex_OCR")
21
 
22
  imgen = Image.open(requests.get('https://cdn-uploads.huggingface.co/production/uploads/62dbaade36292040577d2d4f/eOAym7FZDsjic_8ptsC-H.png', stream=True).raw)
23
  #imgzh = Image.open(requests.get('https://cdn-uploads.huggingface.co/production/uploads/62dbaade36292040577d2d4f/m-oVg8dsQbQZ1fDWbwKtO.png', stream=True).raw)
 
15
  from PIL import Image
16
  import requests
17
 
18
+ feature_extractor = AutoImageProcessor.from_pretrained("MixTex/ZhEn-Latex-OCR")
19
+ tokenizer = AutoTokenizer.from_pretrained("MixTex/ZhEn-Latex-OCR", max_len=296)
20
+ model = VisionEncoderDecoderModel.from_pretrained("MixTex/ZhEn-Latex-OCR")
21
 
22
  imgen = Image.open(requests.get('https://cdn-uploads.huggingface.co/production/uploads/62dbaade36292040577d2d4f/eOAym7FZDsjic_8ptsC-H.png', stream=True).raw)
23
  #imgzh = Image.open(requests.get('https://cdn-uploads.huggingface.co/production/uploads/62dbaade36292040577d2d4f/m-oVg8dsQbQZ1fDWbwKtO.png', stream=True).raw)