persona chat
Persona-driven chat on self-hosted open models, with personalities defined as data rather than code.
Read the code on GitHub →- Year
- 2025
- Status
- Public on GitHub
- Built with
- Python, Streamlit, Ollama, Docker, AWS EC2
client = Client()
model = st.selectbox(
'Model',
['artifish/llama3.2-uncensored', 'wizard-vicuna-uncensored'],
index=1
)
def save_custom_personality():
personality_data = {
"name": st.session_state.personality_name,
"traits": st.session_state.personality_traits,
"tone": st.session_state.personality_tone,
"background": st.session_state.personality_background
}Both models run on Ollama on a single EC2 instance, and you choose which one to talk to. A personality is a name, traits, a tone and a background story, and it gets folded into the system prompt for every turn.
The whole thing ships as a Docker Compose setup, so the same app and models that run locally run on the server.