event-data-extraction-playground
/
src
/nlp
/experimental
/llm
/llm_image_document_question_answering.py
from huggingface_hub import InferenceClient | |
from src.configuration.config import INFERENCE_API_KEY | |
client = InferenceClient( | |
"vikhyatk/moondream2", | |
token=INFERENCE_API_KEY,) | |
response = client.image_to_text( | |
image="event.jpg") | |
print(response) |