https://github.com/mbn-code/chatgpt-gui
This program is a chatbot that uses the OpenAI API to generate responses to user queries. It has a GUI with a text box for the user to input their query and a label to display the chatbot's response. The user can also set their OpenAI API key and clear the chatbot's previous response.
https://github.com/mbn-code/chatgpt-gui
Last synced: 5 months ago
JSON representation
This program is a chatbot that uses the OpenAI API to generate responses to user queries. It has a GUI with a text box for the user to input their query and a label to display the chatbot's response. The user can also set their OpenAI API key and clear the chatbot's previous response.
- Host: GitHub
- URL: https://github.com/mbn-code/chatgpt-gui
- Owner: mbn-code
- Created: 2022-12-14T09:01:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T00:51:13.000Z (about 1 year ago)
- Last Synced: 2025-04-03T01:41:28.579Z (10 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local LLM Chat GUI
A simple Python-based GUI application that allows you to interact with local Large Language Models through Ollama. This application provides a chat interface with multiple tabs for different conversations.
## Features
- Multiple chat tabs support
- Local LLM integration via Ollama
- Simple and intuitive interface
- Real-time responses
- Error handling and status messages
## Prerequisites
Before using this application, you need to:
1. Install Ollama on your system
- Visit [Ollama's website](https://ollama.ai/) to download and install
- Make sure the Ollama service is running
2. Install Python dependencies:
```bash
pip install -r requirements.txt
```
## Installation
1. Clone the repository:
```bash
git clone [your-repository-url]
cd ChatGPT-GUI
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
## Usage
1. Start Ollama service on your system
2. Run the application:
```bash
python chatGPT.py
```
3. Using the Interface:
- Click "New Chat" to open a new chat tab
- Type your message and press Enter to send
- Use "Delete Chat" to remove the current tab
- The default model is "llama2" but can be modified in the code
## Technical Details
The application is built using:
- Python 3.x
- Tkinter for GUI
- Ollama for local LLM integration
- Asynchronous request handling
### Project Structure
```
ChatGPT-GUI/
├── chatGPT.py # Main GUI application
├── requestLocal.py # Ollama integration
└── requirements.txt # Python dependencies
```
## Error Handling
The application handles common errors including:
- Ollama service not running
- Model not found/not downloaded
- Invalid inputs
- Connection issues
## Troubleshooting
1. If you get "Ollama server is not running" error:
- Check if Ollama is installed
- Verify Ollama service is running
- Restart Ollama service
2. If model responses are slow:
- Check your system resources
- Consider using a lighter model
## Contributing
Feel free to submit issues and enhancement requests!