# KI Bot
KI Bot is a chat application built with Flask and Google Generative AI, designed to provide an interactive chat interface. The application leverages the power of the Gemini-pro model to generate responses in real-time.
## Features
- Interactive chat interface
- Real-time responses using Google Generative AI
- Simple and intuitive UI
## Prerequisites
- Python 3.7+
- Flask
- Google Generative AI API key
## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/your-username/ki-bot.git
cd ki-bot
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install flask google-generativeai
-
Configure your API key:
Replace
"YOUR_API_KEY"
inkibot.py
with your actual Google Generative AI API key.
-
Run the Flask application:
python kibot.py
-
Access the application:
Open your web browser and go to
http://127.0.0.1:5000
. -
Interact with the chat bot:
Type your message in the input box and press
Enter
or click the send button to receive responses from the bot.
kibot.py
: The main application file containing the Flask setup and route handlers.templates/
: Directory for HTML templates (currently usingrender_template_string
for simplicity).
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
For any questions or feedback, feel free to open an issue or contact me at [krss132005@gmail.com].
Replace placeholders like `your-username`, `YOUR_API_KEY`, and `your-email@example.com` with your actual GitHub username, API key, and email address, respectively. You can also expand the sections to include more details as needed.