event-data-extraction-playground / src /nlp /experimental /llm /llm_image_document_question_answering.py
manaviel85370
add pages and all
da88570
raw
history blame contribute delete
253 Bytes
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)