Spaces:
Sleeping
Sleeping
File size: 279 Bytes
df1a5bb 9eabb7a df1a5bb |
1 2 3 4 5 6 |
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 '}]
|