Update README.md
Browse files
README.md
CHANGED
|
@@ -63,14 +63,14 @@ processor = AutoProcessor.from_pretrained(model_path)
|
|
| 63 |
model = AutoModelForVision2Seq.from_pretrained(model_path).to(device)
|
| 64 |
|
| 65 |
# prepare image and text prompt, using the appropriate prompt template
|
| 66 |
-
url = "https://
|
| 67 |
|
| 68 |
conversation = [
|
| 69 |
{
|
| 70 |
"role": "user",
|
| 71 |
"content": [
|
| 72 |
{"type": "image", "url": url},
|
| 73 |
-
{"type": "text", "text": "
|
| 74 |
],
|
| 75 |
},
|
| 76 |
]
|
|
|
|
| 63 |
model = AutoModelForVision2Seq.from_pretrained(model_path).to(device)
|
| 64 |
|
| 65 |
# prepare image and text prompt, using the appropriate prompt template
|
| 66 |
+
url = "https://huggingface.co/ibm-granite/granite-vision-3.1-2b-preview/blob/main/example.png"
|
| 67 |
|
| 68 |
conversation = [
|
| 69 |
{
|
| 70 |
"role": "user",
|
| 71 |
"content": [
|
| 72 |
{"type": "image", "url": url},
|
| 73 |
+
{"type": "text", "text": "Which is the highest scoring model on ChartQA and what is the score?"},
|
| 74 |
],
|
| 75 |
},
|
| 76 |
]
|