Summarising YouTube Videos with AI
Day 2 / 365
People are worried about how AI might replace them. I think they should instead focus on how they can use AI to make them better. I am always on the lookout for AI tools that can make me more productive, or at the very least save me some time.
So today I tried building one such tool — An app that generates the summary of a Youtube video.
Why do I need this?
I consume a lot of YouTube, for both entertainment and learning. And because of how clickbaity it has become, it's hard to know whether a 20-minute video has what you are looking for or is just going to be a big waste of time.
So I want AI to go through the video for me and create a summary for me with 5 bullet points. I can read the summary and then decide whether I need to watch the whole video or not.
How I made it
To make this tool, I used Python and Streamlit. I first use the YouTube URL to fetch the transcript of the video. I then pass on that text to GPT 3.5 and ask it to summarize it for me.
Thanks to Streamlit, the whole thing is less than 50 lines of code!
The app is live, and you can check it out here —
https://yt-summary.streamlit.app/
So instead of watching a 11-minute video like this one -
I can just read the 5-point summary that my tool gives me!
The app was a quick prototype, and there are certain limitations
- It only works for videos that have transcripts, so mostly English videos are supported for now
- It only works for videos less than 45 minutes long.
But all of these are fixable, and I plan to work on this more in the coming days