Skip to content

oursky/ollama-streamlit-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ollama Streamlit Chatbot Template

This project is a chatbot example written in Python using the Streamlit library. It connects to your local LLM models through Ollama, ensuring privacy and security.

screenshot

Prerequisites

  1. Install Python 3 (using brew on MacOS):

    brew install python3
    
  2. Install Ollama by following the instructions at ollama.com

  3. Download and run the Llama 3 model:

    ollama run llama3.2
    

Run with Python

Set Up Environment

  1. Navigate to this project directory:

    cd your-work-directory
    
  2. Create and activate a virtual environment:

    python3 -m venv env
    source env/bin/activate
    
  3. Install required packages:

    pip install -r requirements.txt
    

Start the Chatbot

streamlit run app.py

Done!

About

A simple local AI chatbot interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages