Summarize YouTube videos using Python and GPT models.
- Make sure a valid version of Python is installed.
- Make sure poetry is install
pip install poetry
. - Run
poetry install
to install dependencies.
Summarize a YouTube video by copying the URL or video ID and then running the following command:
python youtube_summarizer/main.py -v GpqAQxH1Afc
Replacing GpqAQxH1Afc
with the video ID of the video you want to summarize.
You can also add a --run-async
or -a
flag to run the code asynchronously which will speed up the execution.
- Try changing the model to gpt-4 by specifying the
-m
flag. - Decrease the context length with the
-c
flag or add the-d
(detailed) flag to generate more notes.