mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-08-14 03:31:41 +00:00
Image Loader (Blip)
This loader captions an image file using Blip.
Usage
To use this loader, you need to pass in a Path
to a local file.
from pathlib import Path
from llama_index import download_loader
ImageCaptionReader = download_loader("ImageCaptionReader")
loader = ImageCaptionReader()
documents = loader.load_data(file=Path('./image.png'))