wjbmattingly
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -35,8 +35,8 @@ import requests
|
|
35 |
url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
|
36 |
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
|
37 |
|
38 |
-
processor = TrOCRProcessor.from_pretrained('medieval-data/trocr-medieval-latin-caroline
|
39 |
-
model = VisionEncoderDecoderModel.from_pretrained('medieval-data/trocr-medieval-latin-caroline
|
40 |
pixel_values = processor(images=image, return_tensors="pt").pixel_values
|
41 |
|
42 |
generated_ids = model.generate(pixel_values)
|
|
|
35 |
url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
|
36 |
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
|
37 |
|
38 |
+
processor = TrOCRProcessor.from_pretrained('medieval-data/trocr-medieval-latin-caroline')
|
39 |
+
model = VisionEncoderDecoderModel.from_pretrained('medieval-data/trocr-medieval-latin-caroline')
|
40 |
pixel_values = processor(images=image, return_tensors="pt").pixel_values
|
41 |
|
42 |
generated_ids = model.generate(pixel_values)
|