A simple desktop GUI chat application powered by Google Gemini via LangChain.
Send messages and receive AI-generated responses in a user-friendly interface.

- Chat with Gemini AI (Google Generative Language)
- Markdown-formatted responses
- Easy-to-use GUI (PyWebView)
- Keeps chat history
-
Clone (or fork) the repository
git clone https://github.com/dynstat/mini-AI-chat-app.git cd mini-AI-chat-app
-
Install dependencies
1. Activate the venv using: uv venv 2. run: uv sync
Or use your preferred Python environment manager.
-
Configure API keys
- Create a
.env
file in the project root. - Add your Gemini API key:
GEMINI_API_KEY=your-google-gemini-api-key
- Create a
Run the GUI app:
uv run gui-app.py
gui-app.py
— Main GUI applicationchat_ai.py
— AI response logicindex.html
— Frontend (HTML UI).env
— Environment variables (API keys)
- Python 3.12+
- See
requirements.txt
oruv.lock
for dependencies