A collection of Python applications demonstrating chat interfaces powered by local Ollama AI models, including both CLI and web-based (Streamlit) UIs.
-
Streamlit Web Chatbox (
chatbox.py):
Interactive chat UI with real-time streaming responses from Ollama's Deepseek-R1 7B model.
Maintains chat history during the session. -
CLI Chatbot (
main.py):
Command-line interface for chatting with the Deepseek-R1 7B model. -
Demo & Test Apps (
streamlit_test.py,streamlit_demo.py):
Simple Streamlit examples for UI and session state management.
-
Install Ollama
Ollama installation guide
Or via terminal:curl https://ollama.ai/install.sh | sh -
Start Ollama server
ollama serve
-
Pull the Deepseek model
ollama pull deepseek-r1:7b
-
Install Python dependencies
pip install streamlit ollama-python
streamlit run chatbox.py- Opens in your browser at
http://localhost:8501 - Enter questions and receive streaming AI responses
python main.py- Type messages in the terminal and get responses
chatbox.py— Main Streamlit chat interface with Ollama integrationmain.py— CLI chatbot using Ollamastreamlit_test.py,streamlit_demo.py— UI and session state demos
- Python 3.8+
- Ollama running locally (
ollama serve) - Deepseek-R1 7B model pulled
MIT