Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ from transformers import TrOCRProcessor, VisionEncoderDecoderModel
|
|
58 |
from PIL import Image
|
59 |
|
60 |
# Load the model and processor
|
61 |
-
processor = TrOCRProcessor.from_pretrained("Kansallisarkisto/multicentury-htr-model")
|
62 |
model = VisionEncoderDecoderModel.from_pretrained("Kansallisarkisto/multicentury-htr-model")
|
63 |
|
64 |
# Open an image of handwritten text
|
|
|
58 |
from PIL import Image
|
59 |
|
60 |
# Load the model and processor
|
61 |
+
processor = TrOCRProcessor.from_pretrained("Kansallisarkisto/multicentury-htr-model/processor")
|
62 |
model = VisionEncoderDecoderModel.from_pretrained("Kansallisarkisto/multicentury-htr-model")
|
63 |
|
64 |
# Open an image of handwritten text
|