This app allows users to generate a summary of a whole YouTube video using pytube to download the video's audio in mp4 format, moviepy to convert it to mp3 format, OpenAI Audio to Text API to transcribe the audio, and Text Summarizer API to generate a summary of the transcribed text. It also features a user-friendly interface built with Streamlit. The app is hosted here: YouTube Summarizer
- Clone the repository
git clone https://github.com/Rafayqayyum/youtube-summarizer
- Install the requirements
pip install -r requirements.txt
- Sign up for an OpenAI API key here
- Add your OpenAI API key to the environment variable by exporting it in your terminal:
export OPENAI_API_KEY='YOUR_API_KEY'
- Run the app
streamlit run app.py
- Enter the URL of the YouTube video you want to summarize.
- Click the "Summarize" button.
- Wait for the app to process the video and generate the summary.
- The summary will be displayed on the screen.