Skip to content

Flask web application built with Gemini and Spire to talk to images in PDF

Notifications You must be signed in to change notification settings

Raghavan1988/talk_to_images_with_gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

talk_to_images_with_gemini

Flask web application built with Gemini and Spire to talk to images in PDF

Steps

  1. Get an OPEN AI API KEY for TruLens evaluation
  2. Get Google API KEY to use Gemini Pro Vision
  3. add the keys in line 11 and 12 respectively of the code
  4. pip install -r requirements.txt
  5. export FLASK_APP=app.py
  6. flask run

Demo screenshots

English question : How much did Contrastive COT score in Arithematic Reasoning?

Spanish Translation: ¿Cuánto obtuvo COT contrastivo en razonamiento aritmético?

Ask the question in Spanish to Gemini Screenshot from 2023-12-24 16-53-44

Gemini's response

Gemini responded in english saying Contrastive COT scored 79. Screenshot from 2023-12-24 16-56-44

Relevant image from the PDFImage8

Trulens Eval dashboard

Screenshot from 2023-12-24 16-59-06

Terminal Log for verification

Screenshot from 2023-12-24 16-58-23

About

Flask web application built with Gemini and Spire to talk to images in PDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published