This tool will take a YouTube URL and return a summary of the video.
It performs 3 steps:
- download the audio of the video
- transcribe the audio
- summarize the transcription.
Each of these are stored in a local directory created for the video.
Once the audio or transcription have been saved, they aren't regenerated on subsequent calls, but the summary is.
demo.mp4
Before using, make sure to install the required packages:
pip install -r requirements.txtAnd be sure that your OpenAI API Key is saved to the environment variable OPENAI_API_KEY.
To run the tool, follow these steps:
Run the main script:
python app.pyFirst prompt will ask for the YouTube URL.
Second prompt will ask for the max tokens (or default).