/chatgpt_prompt_generator

Primary LanguagePythonApache License 2.0Apache-2.0

ChatGPT Prompt Generator

This Python script generates ChatGPT prompts based on user-defined topics or a random prompt if no topic is provided. It uses the OpenAI API to generate responses to prompts.

Forks Stars Issues GitHub contributors

Installation

  1. Clone the repository to your local machine:
  2. Install the required packages:
  3. Add your OpenAI API key to the openai.api_key variable in the script.

Usage

To use the script, run the following command in your terminal: python app.py

The script will prompt you to enter a topic for the prompt. If you don't enter a topic, the script will generate a random prompt. It will then generate a ChatGPT response based on the prompt and print the prompt and response to the console.

License

This project is licensed under the Apache 2.0 license. See the LICENSE file for details.