Typo
#30
by
MicahB
- opened
README.md
CHANGED
@@ -53,7 +53,7 @@ pipe = pipeline("image-to-text", model=model_id)
|
|
53 |
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
|
54 |
image = Image.open(requests.get(url, stream=True).raw)
|
55 |
|
56 |
-
# Define a chat
|
57 |
# Each value in "content" has to be a list of dicts with types ("text", "image")
|
58 |
conversation = [
|
59 |
{
|
|
|
53 |
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
|
54 |
image = Image.open(requests.get(url, stream=True).raw)
|
55 |
|
56 |
+
# Define a chat history and use `apply_chat_template` to get correctly formatted prompt
|
57 |
# Each value in "content" has to be a list of dicts with types ("text", "image")
|
58 |
conversation = [
|
59 |
{
|