ydshieh HF Staff commited on
Commit
25d1e53
·
verified ·
1 Parent(s): a4844f9

Update ocr.py

Browse files
Files changed (1) hide show
  1. ocr.py +1 -1
ocr.py CHANGED
@@ -11,7 +11,7 @@ model = Kosmos2_5ForConditionalGeneration.from_pretrained(repo, device_map=devic
11
  processor = AutoProcessor.from_pretrained(repo)
12
 
13
  # sample image
14
- url = "https://huggingface.co/ydshieh/kosmos-2.5/blob/main/receipt_00008.png"
15
  image = Image.open(requests.get(url, stream=True).raw)
16
 
17
  # bs = 1
 
11
  processor = AutoProcessor.from_pretrained(repo)
12
 
13
  # sample image
14
+ url = "https://huggingface.co/ydshieh/kosmos-2.5/resolve/main/receipt_00008.png"
15
  image = Image.open(requests.get(url, stream=True).raw)
16
 
17
  # bs = 1