Skip to content

pavankumarhm/Blog-Genarator-using-openAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Project Name

Blog-Genarator-using-openAI

Description

This project generates blog paragraphs on any topic using the OpenAI GPT-3 language model. It allows the user to input a topic and generates a paragraph of up to 400 words based on that topic. The generated text is not restricted to a specific domain or category and can be used for a wide range of purposes.

Getting Started

Dependencies

  • Python 3.x
  • OpenAI API key
  • dotenv library
  • VS Code

Installing

  1. Install OpenAI - pip install openai.
  2. Install python-dotenv - pip install python-dotenv.
  3. Create a file named .env in the root directory of the project.
  4. Add your OpenAI API key to the .env file as API_KEY=<your_api_key>.

Executing Program

  1. Run the program using the command Blog_generator.py.
  2. When prompted, enter a topic for the paragraph.
  3. The program will generate a paragraph based on the topic entered.
  4. To generate more paragraphs, enter y when prompted.

About

Blog-Genarator-using-openAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages