ibm_1 / app.py
marcellohalfeld's picture
Update app.py
4c22a71 verified
raw
history blame
310 Bytes
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"
)