This project uses OpenAI's GPT-3 model to generate summaries of given pieces of code. You input a file containing the code you want to summarize, and the script outputs a summary of what the code does.
To run this script, you'll need:
- Python 3.6 or later
- An OpenAI API key
You can obtain an OpenAI API key by creating an account on the OpenAI website and following the necessary steps.
- Clone this repository to your local machine.
- Install the requirements
pip install -r requirements.txt
- Open the script file and replace
'your-openai-api-key'
with your actual OpenAI API key.
To use the script, pass the path to a file containing the code you want to summarize as an argument when you run the script:
python summarize.py /path/to/your/code.py