ydshieh
commited on
Commit
·
245a0c8
1
Parent(s):
685ba67
update after integration
Browse files
chat.py
CHANGED
|
@@ -15,7 +15,8 @@ model = Kosmos2_5ForConditionalGeneration.from_pretrained(repo,
|
|
| 15 |
processor = AutoProcessor.from_pretrained(repo)
|
| 16 |
|
| 17 |
# sample image
|
| 18 |
-
url = "https://huggingface.co/microsoft/kosmos-2.5/
|
|
|
|
| 19 |
image = Image.open(requests.get(url, stream=True).raw)
|
| 20 |
|
| 21 |
question = "What is the sub total of the receipt?"
|
|
|
|
| 15 |
processor = AutoProcessor.from_pretrained(repo)
|
| 16 |
|
| 17 |
# sample image
|
| 18 |
+
url = "https://huggingface.co/microsoft/kosmos-2.5/resolve/main/receipt_00008.png"
|
| 19 |
+
|
| 20 |
image = Image.open(requests.get(url, stream=True).raw)
|
| 21 |
|
| 22 |
question = "What is the sub total of the receipt?"
|