GithubHelp home page GithubHelp logo

maxinexiong / chatgpt-tkinter-desktop-app Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 23.62 MB

An unofficial tkinter desktop application that enables natural language conversations with OpenAI's ChatGPT directly from your local computer using GPT-3.5 Turbo, GPT-4o mini, GPT-4o, or GPT-4 Turbo model. With its user-friendly interface and message audio playback, this app aims to provides an enjoyable experience akin to talking to a real person.

Home Page: https://maxinexiong.github.io/projects/ai-projects.html#gpt-desktop

License: MIT License

Python 100.00%
chatgpt customtkinter gpt-3-5-turbo gui-application openai-api python tkinter ai-project chat-completion-api chatbot gpt-3 gpt-35-turbo gpt-4 gpt-4-turbo openai-api-chatbot openai-chatgpt gpt-4o gpt-4o-mini

chatgpt-tkinter-desktop-app's Introduction

ChatGPT Tkinter Desktop App

GitHub License: MIT Made with Python OpenAI API ChatGPT


Welcome to the repository for the unofficial ChatGPT Tkinter Desktop App! This user-friendly application allows you to have natural language conversations with ChatGPT directly from your local computer — provided you have internet access. Built upon OpenAI's Chat Completions API, it leverages advanced natural language processing capabilities to deliver high-quality responses to human's requests. Through an intuitive user interface, you can easily select between GPT-3.5 Turbo, GPT-4o mini, GPT-4o, GPT-4 Turbo models, engage in conversations with ChatGPT, review previous interactions, and even listen to the chatbot's responses through audio playback. The goal of this application is to provide an immersive and enjoyable conversational experience that closely resembles interacting with a real person.

Press the CTRL key and click the badge below simultaneously to run the application (Please be aware that the audio playback functionality may not be available when running the application on Replit):

Run on Repl.it


Features

  • Intuitive User Interface: The ChatGPT Tkinter Desktop App provides a seamless and user-friendly interface, enabling effortless conversations with ChatGPT.
  • Immersive Conversational Experience: Engage in natural language conversations with ChatGPT using your own OpenAI API key, creating an authentic and immersive experience that closely resembles conversing with a real person.
  • Model Selection: Choose between the GPT-3.5 Turbo, GPT-4o mini, GPT-4o and GPT-4 Turbo models to tailor the conversational capabilities to your specific needs, ensuring optimal performance and accuracy.
  • Conversation History: Easily access and review your past conversations within the app, allowing for convenient reference and continuity.
  • Audio Playback: Enhance your experience by listening to the chatbot's responses through built-in audio playback functionality, bringing the conversation to life.

Repository Structure

The repository is structured as follows:

ChatGPT-Tkinter-Desktop-App/
├── main.py                   
├── bot.py
├── icons/
│   └── chat.ico                 
├── requirements.txt         
├── .gitignore
├── README.md                 
└── LICENSE                   
  • main.py: This file is the main entry point of the desktop app and contains the Python code responsible for handling the user interface and communication with GPT models.
  • bot.py: This file contains the Python code that defines the class for the ChatGPTBot, encapsulating the functionality of the ChatGPT models and handling the generation of responses.
  • icons/: This folder contains the ICO image that is used as the app's window icon.
  • requirements.txt: This file lists all the required Python modules and packages necessary to run the desktop app. You can install these dependencies on your local computer by running the command pip install -r requirements.txt.
  • .gitignore: Specifies which files and directories Git should ignore, helping to keep the repository clean from unnecessary or sensitive files.
  • README.md: Provides an overview of this repository.
  • LICENSE: The license file for the project.

Get Started

To intall the desktop application on your computer, please follow these steps:

  1. Clone this repository to your local machine using the following command:

    git clone https://github.com/MaxineXiong/ChatGPT-Tkinter-Desktop-App.git
    

    Alternatively, you can download the EXE application from the web application Talk to GPT.

  2. Download and install the latest version of Python for your system. Make sure to select the "Add Python to PATH" option during the installation process.

  3. Navigate to the project folder using File Explorer, type cmd in the address bar at the top of the window, and press Enter. This will open Command Prompt in the project folder.

  4. Now launch the desktop application by entering the following command in the Command Prompt:

    python main.py
    

Now you can start chatting with ChatGPT by entering your API key and selecting a GPT model, and then typing your messages in the input field and pressing Enter, as the video below demonstrates.

ChatGPT-Tkinter-Desktop-App.mp4

Contributions

Contributions to the ChatGPT Tkinter Desktop App are welcome! If you have any ideas, suggestions, or bug fixes, please open an issue or submit a pull request. Your contributions can help improve the functionality and user experience of the app.


License

The ChatGPT Tkinter Desktop App is licensed under the MIT License. Feel free to use, modify, and distribute the application in accordance with the terms of the license.


Acknowledgments

I would like to express my gratitude to the open-source community for their invaluable contributions. The development of this app would not have been possible without the support and efforts of the following projects and individuals:

  • OpenAI for developing GPT models and APIs.
  • Python for providing a powerful programming language.
  • GitHub for hosting this repository and enabling collaboration.

Thank you for using the ChatGPT Tkinter Desktop App! I hope you find it useful and enjoy your conversations with ChatGPT.

chatgpt-tkinter-desktop-app's People

Contributors

maxinexiong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

r-m77

chatgpt-tkinter-desktop-app's Issues

Invalid API key provided

i tried different API KEYS ,but the application shows error textbox tha the api key is invalid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.