Flask web application built with Gemini and Spire to talk to images in PDF
- Get an OPEN AI API KEY for TruLens evaluation
- Get Google API KEY to use Gemini Pro Vision
- add the keys in line 11 and 12 respectively of the code
- pip install -r requirements.txt
- export FLASK_APP=app.py
- flask run
Uploaded PDF: https://github.com/Raghavan1988/talk_to_images_with_gemini/blob/main/uploads/Survey_of_prompt_engineering_techniques_and_challenges.docx.pdf
Ask the question in Spanish to Gemini
Gemini responded in english saying Contrastive COT scored 79.