MixTex commited on
Commit
3e18217
1 Parent(s): cc74244

Update README.md

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