A modern chatbot implementation using Ollama's Llama2 model with both terminal and Pygame-based graphical user interfaces.
- Terminal-based chat interface
- Modern Pygame GUI with:
- Real-time message streaming
- Code block highlighting
- Message bubbles
- Smooth scrolling
- Loading animations
- Configurable model settings via TOML
- Multi-threaded response handling
- Python 3.10 or higher
- Conda (for environment management)
- Ollama with Llama2 model installed
- Clone the repository:
git clone https://github.com/RyoK3N/Ollama-chatbot-lamma2
cd Ollama-chatbot-lamma2
- Create and activate the conda environment:
chmod +x chatbot.sh
./chatbot.sh
Run the chatbot script and choose your preferred interface:
./chatbot.sh
Select:
- Terminal interface
- Pygame GUI
Edit config.toml
to customize:
- Model settings
- Server configuration
- Environment variables
MIT License