This is a Python application that allows you to summarize the content of a YouTube video using OpenAI's GPT-3.5 language model and Langchain. The application get the transcription provided by YouTube, chunks the Transcription with Langchain and generates a summary in the language of the youtube video.
- Get the Transcription from Youtube
- Chunks the transcriptions with Langchain
- Summarizes transcribed text using OpenAI's GPT-3.5 model
- Built with Streamlit for an easy-to-use web interface
Before you begin, ensure you have installed the following:
- Python 3.6 or above
- PyTube
- OpenAI
- python-dotenv
- youtube-transcript-api
- Langchain
- Clone this repository:
git clone https://github.com/DevRico003/youtube_summarizer
- Change into the cloned repository:
cd youtube_summarizer
- Install all necessary packages:
pip install -r requirements.txt
- Create a
.env
directory in your home directory (or any directory of your choice), and create in the directory.env
a file calledopenai_api
and add your OpenAI API Key:
OPENAI_API_KEY=your_openai_api_key
- Change the
env_path
variable in the Python script to match the path of your.env
file.
Please note that this application relies on the OpenAI GPT-3.5 language model, and its performance and results are subject to the capabilities of the model and the quality of the provided data. The generated summaries may not always be perfect and may require manual editing for accuracy.