Code Monkey home page Code Monkey logo

image_chatbot's Introduction

Image Chat Bot ๐Ÿ–ผ๏ธ๐Ÿค–

Overview

This project demonstrates a simple application using Gemini Vision Pro API to extract invoice information based on user input questions. It utilizes Streamlit for the user interface and Google Generative AI for processing and generating responses.

Installation

Prerequisites

  • Python 3.10 or higher installed
  • Access to Gemini Vision Pro API key
  • Google Generative AI API key (stored in a .env file)

Installation Steps

  1. Clone the repository:
    git clone https://github.com/your/repository.git
    cd Image-Chat-Bot
  2. Install dependencies:
    pip install -r requirements.txt

Usage

Running the Application Locally

  1. Set up your environment variables:
    • Create a .env file in the project root directory.
    • Add your Google Generative AI API key:
      GOOGLE_API_KEY=<your_api_key>
  2. Start the Streamlit application:
    streamlit run app.py
  3. Access the application in your web browser at http://localhost:8501.

Using the Application

  • Input your prompt text in the provided text box.
  • Upload an invoice image (JPEG, JPG, or PNG).
  • Click the "Tell me about the invoice" button to generate responses based on the input prompt and uploaded image.

Project Structure

The project structure is as follows:

Image-Chat-Bot/
โ”‚
โ”œโ”€โ”€ app.py                    # Streamlit application script
โ”œโ”€โ”€ setup.py                  # Setup script for dependencies
โ”œโ”€โ”€ requirements.txt          # List of dependencies
โ””โ”€โ”€ .env                      # Environment variables file (not included in repository)

Contributing

Contributions are welcome! If you have suggestions or improvements, please open an issue or a pull request.

License

This project is licensed under the MIT License.

#Happy Coding!

image_chatbot's People

Contributors

shashankatthaluri avatar

Watchers

 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.