Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ollama Chatbox Project

A collection of Python applications demonstrating chat interfaces powered by local Ollama AI models, including both CLI and web-based (Streamlit) UIs.

Features

  • 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.

Setup

  1. Install Ollama
    Ollama installation guide
    Or via terminal:

    curl https://ollama.ai/install.sh | sh
  2. Start Ollama server

    ollama serve
  3. Pull the Deepseek model

    ollama pull deepseek-r1:7b
  4. Install Python dependencies

    pip install streamlit ollama-python

Usage

Run the Streamlit Chatbox

streamlit run chatbox.py
  • Opens in your browser at http://localhost:8501
  • Enter questions and receive streaming AI responses

Run the CLI Chatbot

python main.py
  • Type messages in the terminal and get responses

File Overview

  • chatbox.py — Main Streamlit chat interface with Ollama integration
  • main.py — CLI chatbot using Ollama
  • streamlit_test.py, streamlit_demo.py — UI and session state demos

Requirements

  • Python 3.8+
  • Ollama running locally (ollama serve)
  • Deepseek-R1 7B model pulled

License

MIT

About

A Python project featuring both web (Streamlit) and CLI chat interfaces powered by local Ollama AI models (e.g., Deepseek-R1 7B). Includes real-time streaming responses, persistent chat history, and simple demo apps for UI/session state management. Easily run locally for fast, private AI chat experiences.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages