Update README.md
Browse files
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("
|
17 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
18 |
-
model = VisionEncoderDecoderModel.from_pretrained("
|
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)
|