ydshieh HF Staff commited on
Commit
fcdb878
·
verified ·
1 Parent(s): f7fafcf

Update ocr.py

Browse files
Files changed (1) hide show
  1. ocr.py +1 -1
ocr.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  from PIL import Image, ImageDraw
5
  from transformers import AutoProcessor, Kosmos2_5ForConditionalGeneration
6
 
7
- repo = "microsoft/kosmos-2.5"
8
  device = "cuda:0"
9
  dtype = torch.bfloat16
10
  model = Kosmos2_5ForConditionalGeneration.from_pretrained(repo, device_map=device, torch_dtype=dtype)
 
4
  from PIL import Image, ImageDraw
5
  from transformers import AutoProcessor, Kosmos2_5ForConditionalGeneration
6
 
7
+ repo = "ydshieh/kosmos-2.5"
8
  device = "cuda:0"
9
  dtype = torch.bfloat16
10
  model = Kosmos2_5ForConditionalGeneration.from_pretrained(repo, device_map=device, torch_dtype=dtype)