wjbmattingly commited on
Commit
54003e8
1 Parent(s): af2be3e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -42,8 +42,8 @@ import requests
42
  url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
43
  image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
44
 
45
- processor = TrOCRProcessor.from_pretrained('medieval-data/trocr-medieval-castilian-hybrida')
46
- model = VisionEncoderDecoderModel.from_pretrained('medieval-data/trocr-medieval-castilian-hybrida')
47
  pixel_values = processor(images=image, return_tensors="pt").pixel_values
48
 
49
  generated_ids = model.generate(pixel_values)
 
42
  url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
43
  image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
44
 
45
+ processor = TrOCRProcessor.from_pretrained('medieval-data/trocr-medieval-textualis')
46
+ model = VisionEncoderDecoderModel.from_pretrained('medieval-data/trocr-medieval-textualis')
47
  pixel_values = processor(images=image, return_tensors="pt").pixel_values
48
 
49
  generated_ids = model.generate(pixel_values)