Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
|
|
5 |
|
6 |
url = 'https://huggingface.co/yhshin/latex-ocr/raw/main/tokenizer-wordlevel.json'
|
7 |
r = requests.get(url)
|
8 |
-
open('tokenizer-wordlevel.json' , '
|
9 |
|
10 |
|
11 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-small-printed")
|
|
|
5 |
|
6 |
url = 'https://huggingface.co/yhshin/latex-ocr/raw/main/tokenizer-wordlevel.json'
|
7 |
r = requests.get(url)
|
8 |
+
open('tokenizer-wordlevel.json' , 'wb').write(r.content)
|
9 |
|
10 |
|
11 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-small-printed")
|