The file gpt.py is used to generate English essay according to user's input.
This file use gpt-3.5-turbo model to generate essay. OpenAI released a public API for ChatGPT model (“text-davinci-003”). We set the temperature as 0.2 since this is a creative work. For the prompt engineering part, we used the system message.
Notice: Please add the API key in the file before running the code.