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.
- Python 3.10 or higher installed
- Access to Gemini Vision Pro API key
- Google Generative AI API key (stored in a .env file)
- Clone the repository:
git clone https://github.com/your/repository.git cd Image-Chat-Bot
- Install dependencies:
pip install -r requirements.txt
Running the Application Locally
- 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>
- Start the Streamlit application:
streamlit run app.py
- Access the application in your web browser at http://localhost:8501.
- 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.
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)
Contributions are welcome! If you have suggestions or improvements, please open an issue or a pull request.
This project is licensed under the MIT License.
#Happy Coding!