Financeironovo / app.py
Diegobrons's picture
Create app.py
df1a5bb verified
raw
history blame contribute delete
279 Bytes
from transformers import pipeline
captioner = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
captioner("https://huggingface.co/datasets/Narsil/image_dummy/resolve/main/parrots.png")
## [{'generated_text': 'two birds are standing next to each other '}]