Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,9 @@ from PIL import Image
|
|
5 |
|
6 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-small-printed")
|
7 |
model = VisionEncoderDecoderModel.from_pretrained("yhshin/latex-ocr")
|
8 |
-
|
|
|
|
|
9 |
|
10 |
# load image examples
|
11 |
|
|
|
5 |
|
6 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-small-printed")
|
7 |
model = VisionEncoderDecoderModel.from_pretrained("yhshin/latex-ocr")
|
8 |
+
|
9 |
+
from tokenizers import Tokenizer
|
10 |
+
tokenizer = Tokenizer.from_file("tokenizer-wordlevel.json")
|
11 |
|
12 |
# load image examples
|
13 |
|