This script uses OpenAI API to generate summary and comments for a given blog article. It uses ChatGPT model, prompts for API key and the text of a blog article. It generates summary and 18 comments on the article and summary and prints them in console.
- Setup virtual environment
pip install venv
- Start venv with this command
env_name/scripts/activate
- Install
requirements.txt
using pippip install -r requirements.txt
- Finally run
python ai.py