This Python project allows users to input a YouTube video URL, obtain a transcript, generate a summary, and then ask questions about the video's content. The project leverages the power of OpenAI's GPT models through the LangChain framework.
- Transcript Extraction: Automatically fetches the transcript from a YouTube video.
- Video Summary: Generates a concise summary of the video based on its transcript.
- Interactive Q&A: Allows users to ask questions about the video content, providing answers based on the transcript.
- Clone the Repository:
git clone https://github.com/yourusername/youtube-transcript-summarizer.git cd youtube-transcript-summarizer
- Set Up a Virtual Enviroment
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install Dependencies
pip install -r requirements.txt
- Set Up Your OpenAI API Key:
OPENAI_API_KEY=your_openai_api_key_here
- Input the YouTube Video URL:
- View the Summary:
- Ask Questions: