if (FALSE) {
# Process an image
result <- gemini_content_ai(
image = "path/to/image.png",
prompt = "Describe this image in detail"
)
# Process a PDF document
result <- gemini_content_ai(
docs = "path/to/document.pdf",
prompt = "Summarize this document",
outputSize = "large"
)
# Process multiple images and documents
result <- gemini_content_ai(
image = c("img1.png", "img2.png"),
docs = c("doc1.pdf", "doc2.txt"),
prompt = "Compare these materials"
)
}
Run the code above in your browser using DataLab