CoolFace
Apppublic

BhushanP-01/InvoiceExtractor

sourceHugging Facemitupdated 3y agoView on Hugging Face
1likes
README.md70 linesDownload Raw Back to root
1---2title: InvoiceExtractor3emoji: ⚡4colorFrom: blue5colorTo: indigo6sdk: streamlit7sdk_version: 1.29.08app_file: app.py9pinned: false10license: mit11---12 13Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference14 15# Multilanguage Invoice Extractor16This project aims to extract specific information from uploaded invoice images using machine learning models and various Python libraries. It's designed to provide a simple interface for users to interact with and extract necessary details from invoices. It is build using "Gemini pro vision model".17 18 19## Features20- __Image Upload__: Users can upload images of invoices in formats like JPG, JPEG, or PNG.21- __Information Extraction__: Extracts requested information from uploaded invoice images.22- __Multi-Language Support__: Utilizes language processing capabilities for extraction in multiple languages.23 24 25## Libraries and Dependencies26- Streamlit27- google-generativeai28- python-dotenv29- langchain30- PyPDF231- chromadb32 33 34## Usage35### Setup361. Install the necessary dependencies using pip install -r requirements.txt.372. Set up environment variables following the .env.example file.38 39### Running the App40Run the application using the following command: `streamlit run app.py`41 42 43### Interface44- __Input Prompt__: Enter the desired information to extract from the invoice.45- __Image Upload__: Choose an invoice image (JPG, JPEG, or PNG) to process.46- __Extraction__: Click the "Tell me about the invoice" button to extract information.47 48 49### How It Works501. __Initialization__: Loads required environment variables and configures the GenerativeAI model.512. __Gemini Pro Vision Model__: Uses the GenerativeAI model 'gemini-pro-vision' for content generation.523. __Extraction Function__: Processes the uploaded image and input prompt to extract requested information.53 54 55## Contribution56Contributions are welcome! If you'd like to contribute to this project, please follow these steps:57- Fork the repository.58- Create a new branch (`git checkout -b feature/improvement`).59- Make modifications and commit changes (`git commit -am 'Add feature'`).60- Push the changes to your branch (`git push origin feature/improvement`).61- Create a Pull Request.62 63 64## Acknowledgments65- [Streamlit](https://github.com/streamlit/streamlit) for the interactive web app framework.66- [GenerativeAI](https://makersuite.google.com/) for the Gemini Pro Vision model.67- Other libraries and tools used in this project.68 69 70