from transformers import AutoModelForCausalLM, AutoTokenizer
from PIL import Image
model_id = "ayoubkirouane/moondream2-image-captcha"
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_id , trust_remote_code=True)
image = Image.open('/content/test.png')
enc_image = model.encode_image(image)
print(model.answer_question(enc_image, "What does the text say?", tokenizer))
Runs of ayoubkirouane moondream2-image-captcha on huggingface.co
28
Total runs
0
24-hour runs
2
3-day runs
-3
7-day runs
-10
30-day runs
More Information About moondream2-image-captcha huggingface.co Model
moondream2-image-captcha huggingface.co
moondream2-image-captcha huggingface.co is an AI model on huggingface.co that provides moondream2-image-captcha's model effect (), which can be used instantly with this ayoubkirouane moondream2-image-captcha model. huggingface.co supports a free trial of the moondream2-image-captcha model, and also provides paid use of the moondream2-image-captcha. Support call moondream2-image-captcha model through api, including Node.js, Python, http.
moondream2-image-captcha huggingface.co is an online trial and call api platform, which integrates moondream2-image-captcha's modeling effects, including api services, and provides a free online trial of moondream2-image-captcha, you can try moondream2-image-captcha online for free by clicking the link below.
ayoubkirouane moondream2-image-captcha online free url in huggingface.co:
moondream2-image-captcha is an open source model from GitHub that offers a free installation service, and any user can find moondream2-image-captcha on GitHub to install. At the same time, huggingface.co provides the effect of moondream2-image-captcha install, users can directly use moondream2-image-captcha installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
moondream2-image-captcha install url in huggingface.co: