From 1d0bb437b0426802ec335c0865b59e2b342ce6db Mon Sep 17 00:00:00 2001 From: vik Date: Thu, 21 Nov 2024 20:37:44 -0800 Subject: [PATCH] fix python client README, release 0.0.2 --- clients/python/README.md | 6 +++--- clients/python/pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/python/README.md b/clients/python/README.md index 748c49be..31d622b6 100644 --- a/clients/python/README.md +++ b/clients/python/README.md @@ -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: @@ -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) ``` diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index 11bb390d..9bbdd5d1 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "moondream" -version = "0.0.1" +version = "0.0.2" description = "Python client library for moondream" authors = ["vik "] readme = "README.md"