This repository contains a simple graphical chat application built with Python's Tkinter library. The application connects to a chatbot service using the Groq API, allowing users to interact with an AI-powered bot.
- Graphical User Interface: Designed with Tkinter, featuring a chat display, user input field, and send button.
- Groq API Integration: Communicates with the Groq chatbot service to generate responses.
- Customizable Design: Includes different styles and layouts for the chat window.
- User-Friendly: Easy to use, with support for common exit commands (bye, exit, end).
-
Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up the Groq API key:
- Obtain your API key from Groq.
- Set the environment variable
GROQ_API_KEY
with your key:export GROQ_API_KEY="your_groq_api_key" # On Windows, use `set` instead of `export`
-
Run the application:
python app.py
-
Interact with the chatbot:
- Type your message in the input field and press Enter or click the "Send" button.
- The bot will respond, and the conversation will be displayed in the chat window.
- To end the conversation, type "bye", "exit", or "end".
app.py
: The main script containing the Tkinter application and Groq API integration.requirements.txt
: List of Python packages required for the application..gitignore
: Git ignore file for excluding unnecessary files from version control.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to customize the design and functionality as per your needs. Contributions are welcome!