Skip to content

Commit

Permalink
fix python client README, release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vikhyat committed Nov 22, 2024
1 parent d1fd248 commit 1d0bb43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions clients/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ not recommended yet.
Install the library using pip:

```bash
pip install moondream==0.0.1
pip install moondream==0.0.2
```

Then download the model weights:
Expand Down Expand Up @@ -52,9 +52,9 @@ for t in model.caption(encoded_image, stream=True)["caption"]:

# Ask a question about the image.
question = "How many people are in this image?"
answer = model.answer_question(encoded_image, question)["answer"]
answer = model.query(encoded_image, question)["answer"]

# ...or again, if you want to stream the output:
for t in model.answer_question(encoded_image, question, stream=True)["answer"]:
for t in model.query(encoded_image, question, stream=True)["answer"]:
print(t, end="", flush=True)
```
2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "moondream"
version = "0.0.1"
version = "0.0.2"
description = "Python client library for moondream"
authors = ["vik <vik@moondream.ai>"]
readme = "README.md"
Expand Down

0 comments on commit 1d0bb43

Please sign in to comment.