File size: 310 Bytes
4c22a71
f8ad3f6
4c22a71
 
 
 
f8ad3f6
1
2
3
4
5
6
7
8
from transformers import pipeline

#pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
pipe = pipeline(model="Salesforce/blip-image-captioning-base")
preds = pipe(
    images="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg"
)