A local-first, privacy-friendly LLM app that generates a multi-voice psychological analysis (“Analyst”, “Critic”, “Protector”) from user input, running on Ollama and presented via a Streamlit UI.
- Runs entirely locally (Ollama on your machine)
- Produces structured output:
- Psychological profile (archetype, traits, motivations, blind spots)
- “The Tribunal Speaks” (multi-perspective synthesis)
- Designed for fast iteration on prompts + logic with a clean UI
- Python
- Streamlit
- Ollama (local inference)
- httpx (HTTP client)
Install Ollama and pull a model you want to use (examples):
llama3mistralqwen2.5
Example:
ollama pull llama3Start Ollama (if not already running):
ollama servepython3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtFrom the repo root:
streamlit run streamlit_app/app.pyThis app expects an Ollama generate endpoint. Defaults to:
http://127.0.0.1:11434/api/generate
You can override via environment variables:
- Copy:
cp .env.example .env- Edit
.envif needed.
streamlit_app/— Streamlit UIcore/— prompts + logic + LLM clientrun_local.sh— convenience script
This repo is meant to be run locally. If you deploy, keep .env out of git and use environment variables.