wjbmattingly commited on
Commit
87daa90
·
verified ·
1 Parent(s): 64801a9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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)