fail to run this example file [examples/multimodal/main.py]
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.5k
- Forks
- 1.2k
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/multimodal/main.py and reproduce the reported llava run after installing Ollama and the llava model. Inspect the complete ResponseError returned by the generate call; done means the example runs successfully or the example is updated with a verified, reproducible setup and clear failure handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100