Typo (#30)
Browse files- Typo (d5738e86d05209e28e15688db704117e62e0bc22)
Co-authored-by: Micah Bushman <[email protected]>
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 |
{
|