Giter Site home page Giter Site logo

safrasmim / talk_to_images_with_gemini Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raghavan1988/talk_to_images_with_gemini

0.0 0.0 0.0 543 KB

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

Python 80.10% HTML 19.90%

talk_to_images_with_gemini's Introduction

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

talk_to_images_with_gemini's People

Contributors

raghavan1988 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.