An open API service indexing awesome lists of open source software.

https://github.com/nawap1/gemini-image-qa

An engaging web app that lets you upload images and interact with them using Google's Gemini AI. 🖼️🤖 Ask questions, get real-time insights, and enjoy a sleek chat interface with history and timestamps. Built with Streamlit for a responsive experience, this app combines advanced AI with user-friendly design. 🚀
https://github.com/nawap1/gemini-image-qa

computer-vision gemini pillow python3 streamlit

Last synced: 2 months ago
JSON representation

An engaging web app that lets you upload images and interact with them using Google's Gemini AI. 🖼️🤖 Ask questions, get real-time insights, and enjoy a sleek chat interface with history and timestamps. Built with Streamlit for a responsive experience, this app combines advanced AI with user-friendly design. 🚀

Awesome Lists containing this project

README

          

# Advanced Image Q&A with Gemini

An interactive web application that allows users to upload images and ask questions about them using Google's Gemini AI model.

## Features

- Interactive Q&A with the uploaded images
- Real-time chat interface with timestamp
- History tracking of previous questions and answers
- Responsive UI with Streamlit
- Error handling and input validation
- Custom styled chat messages

## Requirements

- Python 3.8 or higher
- Google Cloud account with Gemini API access
- Streamlit
- PIL (Python Imaging Library)
- python-dotenv

## Installation

1. Clone this repository:
```bash
git clone https://github.com/yourusername/yourrepository.git
```

2. Install dependencies:
```bash
pip install -r requirements.txt
```

3. Create a `.env` file in the project root with your Gemini API key:
```
GEMINI_API_KEY=your_api_key_here
```

4. Run the Streamlit app:
```bash
streamlit run app.py
```

## Usage

1. Upload an image using the file uploader
2. Type your question about the image in the text input and press enter

## Demo

https://github.com/user-attachments/assets/aa99ee5e-ea16-4f59-9fe4-6c8316a10eaa