A lightweight, clean, and fully private web interface for interacting with local Large Language Models (LLMs). Built using Python, Gradio 6, and the OpenAI-compatible API server provided by LM Studio.
- Full Conversation Memory: Tracks full turn-by-turn chat history to maintain context with the model.
- Real-Time Streaming: Responses stream token-by-token for a smooth user experience.
- Model Discovery: Instantly refresh and swap between whichever models you currently have loaded in LM Studio.
- Hyperparameter Control: Real-time configuration sliders for
TemperatureandMax Output Tokens. - System Prompt Customisation: Easily inject personas or operational rules before starting a chat session.
- Conversation Logging: Click a button to automatically save your active chat session into timestamped JSON files.
- Language: Python 3.14+
- Frontend Framework: Gradio 6
- API Framework: OpenAI Python SDK (Configured for local routing)
- Local Host Server: LM Studio
- Download and install LM Studio.
- Load a model inside LM Studio and ensure the Local Server option is turned on (defaulting to port
1234).
-
Clone the repository:
git clone https://github.com cd /paulanthonyhebbes-sudo/Personal_Chat_UI/ -
Install the required packages:
pip install -r requirements.txt
Note: Ensure your installation pulls
numpy<2.5to maintain compatibility with Numba dependencies if applicable, alongsidegradio>=6.0.0andopenai. -
Run the application:
python chat_ui.py
-
Access the interface: Your terminal will automatically open your default browser. If it doesn't, navigate manually to:
http://127.0.0.1:7860
chat_ui/
├── chat_ui.py # Main application file & interface wiring
├── requirements.txt # Project dependencies
└── chat_logs/ # Automatically generated directory for saved conversations
This project is open-source and available under the GNU GENERAL PUBLIC LICENSE