fail to run this example file [examples/multimodal/main.py] #37

Open
opened 2026-02-15 16:27:38 -05:00 by yindo · 1 comment
Owner

Originally created by @dabing1205 on GitHub (Feb 22, 2024).

hello,
I failed to run this example after install ollama and llava model.

paste run log here. Please help to take a look on this issue, and if possible, update the example demo in this repo

> {'month': '2', 'num': 2739, 'link': '', 'year': '2023', 'news': '', 'safe_title': 'Data Quality', 'transcript': '', 'alt': "[exclamation about how cute your cat is] -> [last 4 digits of your cat's chip ID] -> [your cat's full chip ID] -> [a drawing of your cat] -> [photo of your cat] -> [clone of your cat] -> [your actual cat] -> [my better cat]", 'img': 'https://imgs.xkcd.com/comics/data_quality.png', 'title': 'Data Quality', 'day': '17'}
> xkcd #2739: [exclamation about how cute your cat is] -> [last 4 digits of your cat's chip ID] -> [your cat's full chip ID] -> [a drawing of your cat] -> [photo of your cat] -> [clone of your cat] -> [your actual cat] -> [my better cat]
> link: https://xkcd.com/2739
> ---
> https://imgs.xkcd.com/comics/data_quality.png
> Traceback (most recent call last):
>   File "/Users/x/Workspace/test_ollama/ollama-python/examples/multimodal/main.py", line 27, in <module>
>     for response in generate('llava', 'explain this comic:', images=[raw.content], stream=True):
>   File "/Users/x/Workspace/test_ollama/lib/python3.9/site-packages/ollama/_client.py", line 68, in _stream
>     raise ResponseError(e.response.text, e.response.status_code) from None
> ollama._types.ResponseError
Originally created by @dabing1205 on GitHub (Feb 22, 2024). hello, I failed to run this example after install ollama and llava model. paste run log here. Please help to take a look on this issue, and if possible, update the example demo in this repo ``` > {'month': '2', 'num': 2739, 'link': '', 'year': '2023', 'news': '', 'safe_title': 'Data Quality', 'transcript': '', 'alt': "[exclamation about how cute your cat is] -> [last 4 digits of your cat's chip ID] -> [your cat's full chip ID] -> [a drawing of your cat] -> [photo of your cat] -> [clone of your cat] -> [your actual cat] -> [my better cat]", 'img': 'https://imgs.xkcd.com/comics/data_quality.png', 'title': 'Data Quality', 'day': '17'} > xkcd #2739: [exclamation about how cute your cat is] -> [last 4 digits of your cat's chip ID] -> [your cat's full chip ID] -> [a drawing of your cat] -> [photo of your cat] -> [clone of your cat] -> [your actual cat] -> [my better cat] > link: https://xkcd.com/2739 > --- > https://imgs.xkcd.com/comics/data_quality.png > Traceback (most recent call last): > File "/Users/x/Workspace/test_ollama/ollama-python/examples/multimodal/main.py", line 27, in <module> > for response in generate('llava', 'explain this comic:', images=[raw.content], stream=True): > File "/Users/x/Workspace/test_ollama/lib/python3.9/site-packages/ollama/_client.py", line 68, in _stream > raise ResponseError(e.response.text, e.response.status_code) from None > ollama._types.ResponseError ```
Author
Owner

@mxyng commented on GitHub (Mar 1, 2024):

Can you describe step by step what you're doing? I'm not able to reproduce this with the latest example, ollama-python, and ollama

@mxyng commented on GitHub (Mar 1, 2024): Can you describe step by step what you're doing? I'm not able to reproduce this with the latest example, ollama-python, and ollama
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#37