H.I.BOT is a web application that provides an interactive chat experience using various AI models (OpenAI, Gemini, Groq).
- Switch between different AI models
- Text-based chat
- Image upload and analysis
- Web search integration
- Python code execution
- Statistics and usage graphs
- Screenshot capture
-
Clone the repository:
git clone https://github.com/U-C4N/H.I.BOT.git cd H.I.BOT
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file and add your API keys:OPENAI_API_KEY=your_openai_api_key GEMINI_API_KEY=your_gemini_api_key GROQ_API_KEY=your_groq_api_key TAVILY_API_KEY=your_tavily_api_key
-
Run the application:
python app.py
-
Go to
http://localhost:5000
in your browser.
- Use the dropdown menu to select different AI models.
- Enter your message and click the "Send" button or press Enter.
- Click the paperclip icon to upload an image.
- Activate the "Web Search" toggle to perform web searches.
- To run Python code, enter the code and click the terminal icon.
- Click the "Stats" button to view statistics.
- Click the camera icon to capture a screenshot.
This application has the capability to execute Python code provided by users on the server side. This can pose potential security risks. Make sure to implement appropriate security measures before using in a production environment.
Pull requests are always welcome. For major changes, please open an issue first to discuss what you would like to change.