Update README.md
Browse files
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/
|
19 |
-
tokenizer = AutoTokenizer.from_pretrained("MixTex/
|
20 |
-
model = VisionEncoderDecoderModel.from_pretrained("MixTex/
|
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)
|