Skip to content

mzubairtahir/Zuchat-openai-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zuchat 🤖

This is a Python GUI application built with tkinter and customtkinter libraries that uses the OpenAI API to generate text. The user can copy the generated text through the copy button. The application consists of two files - get.py and main.py.

get.py is responsible for sending requests to the OpenAI server and returning the generated text. main.py contains all the other code.

Getting Started 🚀

To use this application, you will need to have Python installed on your machine along with the following packages:

  • tkinter 🖥️
  • openai 🤖
  • customtkinter 🎨

After installing Python and the required packages, you can clone this repository and run main.py to launch the application.

Usage 🧑‍💻

Once the application is launched, you can enter your prompt in the text field provided and click the "Submit" button. The generated text will be displayed in the text box below. You can then click the "Copy" button to copy the text to your clipboard.

The application is multi-threaded, which means that it will continue to respond even while the program is making requests to the OpenAI server. This ensures that the application remains responsive and doesn't freeze while generating text.

If you try to submit an empty prompt or a prompt with less than 3 characters, an error message will be displayed.

Notes 📝

This application is OOPs based, which makes it easy to extend and maintain. You can add new features or modify the existing ones by modifying the code in main.py.

License 📜

This project is licensed under the GPL v3.0 License - see the LICENSE file for details.


Zuchat Screenshot

Zuchat Screenshot