A simple ChatGPT like chatbot interface that integrates with the Ollama model, allowing you to run commands and receive responses through a web-based UI.
- Interactive chatbot UI similar to ChatGPT.
- Run commands and receive responses in real-time.
- Responsive design for various screen sizes.
- Easy to set up and use.
- Python - Backend framework (Django).
- HTML/CSS - Frontend interface.
- JavaScript - For handling user input and fetching responses.
- Ollama - Model integration for generating responses.
Follow these steps to set up the project on your local machine.
Make sure you have the following:
- Linux/Mac/Windows CL (Recommended| RAM: 16 GB, Minimum: 8 GB | GPU: External, Minimum: APU(slower) | CPU: Octa-Core, Minimum: Quad-core | Storage: 20 GB, Minimum: 5 GB)
- Python (3.8 or above)
- Django
- Ollama (Ensure it's installed and configured correctly), Here's everything step by step:
Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
ollama serve
ollama run llama3.2
- Anaconda or virtual environment (optional but recommended)
-
Clone the Repository
git clone https://github.com/shakib75bd/ollama3.2_webUI cd ollama3.2_webUI
-
Create a Virtual Environment (Optional)
conda create -n ollamaChatbot python=3.9 conda activate ollamaChatbot
-
Install Required Packages Ensure you are in the project directory and run:
pip install django
-
Start the Development Server
python manage.py runserver
-
Access the Chatbot Interface Open your web browser and go to:
http://127.0.0.1:8000
- Enter your command in the input field and click "Run Command" or press Enter.
- The chatbot will display the response in the chat box.
- Shakib Hossen Shanto, 2024