Skip to content

smartcraze/Invoice-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multilanguage Invoice Extractor

A Streamlit application to extract and understand information from invoice images using Google's Generative AI.

Features

  • Upload invoice images in JPG, JPEG, or PDF format.
  • Extract and answer questions based on the uploaded invoice image using Gemini Pro Vision.

Requirements

  • Python 3.7+
  • Streamlit
  • python-dotenv
  • Pillow (PIL)
  • google-generativeai

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/multilanguage-invoice-extractor.git
    cd multilanguage-invoice-extractor
  2. Create and activate a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Create a .env file in the project root directory and add your Google API key:

    GOOGLE_API_KEY=your_google_api_key

Usage

  1. Run the Streamlit application:

    streamlit run app.py
  2. Open your web browser and go to http://localhost:8501.

  3. Upload an invoice image and input your prompt to get the response based on the uploaded invoice image.

Project Structure

├── app.py
├── requirements.txt
├── .env
└── README.md
  • app.py: Main application file containing the Streamlit app code.
  • requirements.txt: List of dependencies required for the project.
  • .env: Environment file to store the Google API key.
  • README.md: Project documentation.

Acknowledgements

Releases

No releases published

Packages

No packages published

Languages