/OpenAI-GUI

OpenAI-query-widget

Primary LanguagePythonMIT LicenseMIT

OpenAI-GUI

This is a graphical user interface (GUI) for interacting with various OpenAI models. With this GUI, you can easily run various language and machine learning models, such as GPT-3 and DALL-E, without needing to use the command line.

The program works. If you encounter problems running it or have other bug reports or features that you wish to see implemented, please fork the project and submit a pull request and/or file an issue on this project.

TBD

  1. Voice prompt on press or voice command.
  2. Button binds for functionality (Enter, Esc, Delete)
  3. Embeddings text input from https://beta.openai.com/docs/guides/embeddings/what-are-embeddings
  4. Write to class

Screenshots & Videos

openaigui.py

Capture

Capture1

Dall-E Picture of grey cat smoking a cigar

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

In order to use this GUI, you will need to have a valid OpenAI API key. You can sign up for a free API key at the OpenAI website.

You will also need to have Python 3 installed on your machine. You can download Python 3 from the official Python website.

Installation

To install the GUI, first clone the repository to your local machine:

git clone https://github.com/MaxSSD/OpenAI-GUI.git

Next, navigate to the root directory of the project and install the required dependencies:

cd OpenAI-GUI
pip install -r requirements.txt

Usage

To run the GUI, simply enter the following command:

python openaigui.py

The GUI will then open in a new window. You can select the desired OpenAI model from the dropdown menu and enter your input in the text box. When you are ready, click the "Run" button to send your input to the model and view the results.

Keyboard Shortcuts

Key Combo Effect
Enter Speak
Esc Quit
Delete Delete text

Use ase

OpenAI based model GUI tool which displays a desktop prompt window for OpenAI GPT3

Example/test command

  1. Give 10 ideas for python automation implementations.
  2. Review this code: "..."
  3. Summarize this text: "..."

Developer Information

Known Working Versions of Dependencies for openaipysgui.py

  • openai==0.16.0
  • pyttsx3==2.90
  • PySimpleGUI==4.60.4
  • Pillow==9.2.0

Developing a New Component

  • File an issue on GitHub if you need help fitting your OpenAI-GUI into our component system; we would be happy to collaborate. We welcome contributions to this project! If you have an idea for a new feature or bug fix, please open a new issue and let us know.

License

Source code of OpenAI-GUI is licensed under the MIT License. Some dependencies of this application are under the GPL license. When packaged with these dependencies, OpenAI-GUI may also be under the terms of this GPL license.