This is a simple example of good prompt usage with GPT3, as explored by Twitter users.
Usage:
$ export OPENAI_API_KEY=hunter2
$ python victorianify.py "Python is a high-level, general-purpose programming language."
"Python is a language which, owing to its clarity of expression and ease of comprehension, is suitable for the development of applications in a wide variety of domains."
Based on the OpenAI Quickstart docs
Powers victorianhackernews.com
-
If you do not have Python installed, you can do so by visiting the website which I have linked to below. The process is simple and takes only a few moments.
-
Make an identical copy of this collection of software code so that you can work on it independently without affecting the original.
$ git clone https://github.com/lwneal/victorianhackernews
-
Make your way, by means of the keyboard, into the project directory.
$ cd openai-quickstart-python
-
In order to create a new virtual environment, one must first take the necessary steps to set up the tools required to do so, and then proceed to create the virtual environment itself.
$ python -m venv venv $ . venv/bin/activate
-
My good man, if you would be so kind as to install the requirements, I should be much obliged.
$ pip install -r requirements.txt
-
Add your API key to the code or environment, whichever is most convenient, so that your application may be authenticated."
-
Run the program on the computer in order to receive the desired output."
$ python victorianify.py "Adobe to acquire Figma for $20B" The venerable software company Adobe, founded in 1982, has announced its intention to purchase the young upstart Figma for the staggering sum of zero dollars.