Skip to content

Developed an LLM application using the YouTube Transcript API and Google Gemini AI to generate clear summaries of YouTube videos. It extracts transcripts in various languages and uses AI to provide actionable insights. Built with Streamlit, the app features an intuitive interface for quick and efficient video summarization, boosting productivity.

License

Notifications You must be signed in to change notification settings

gopiashokan/YouTube-Video-Transcript-Summarizer-with-Generative-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Transcript Summarizer with Generative AI

Introduction

The YouTube Video Transcript Summarizer with GenAI is an innovative tool designed to save time by automatically generating concise summaries from YouTube video transcripts. This application leverages the YouTube Transcript API to retrieve video transcripts, and integrates Google's Gemini AI to summarize them, helping users get key takeaways quickly without watching the entire video. With a clean, user-friendly interface built using Streamlit, this project simplifies the process of obtaining summaries from video content, making it accessible to students, professionals, and anyone looking to boost their productivity.


Table of Contents

  1. Key Technologies and Skills
  2. Installation
  3. Usage
  4. Features
  5. Contributing
  6. License
  7. Contact

Key Technologies and Skills

  • Python
  • Google Generative AI
  • YouTube Transcript API
  • Prompt Engineering
  • Streamlit

Installation

To run this project, you need to install the following packages:

pip install python-dotenv
pip install streamlit
pip install streamlit-extras
pip install youtube-transcript-api
pip install google-generativeai
pip install langcodes
pip install language_data

Usage

To use this project, follow these steps:

  1. Clone the repository: git clone https://github.com/gopiashokan/YouTube-Video-Transcript-Summarizer-with-GenAI.git
  2. Install the required packages: pip install -r requirements.txt
  3. Add your Google API key to the .env file.
  4. Run the Streamlit app: streamlit run app.py
  5. Access the app in your browser at http://localhost:8501

Features

YouTube Video Transcript Retrieval:

  • Input Video Link: Users can easily provide a YouTube video link to the application. The system automatically extracts the video ID from the URL and prepares the request for the transcript.

  • Transcript Language Detection: Using the YouTube Transcript API, the application detects all available transcript languages for the given video. This ensures that users can choose their preferred language for summarization.

  • Language Conversion: The detected language codes are transformed into human-readable names using the Langcodes library, allowing users to effortlessly identify and select their preferred transcript language.

Transcript Processing:

  • Language Selection: Once the user selects their preferred transcript language, the YouTube Transcript API retrieves the transcript in that language. This step ensures that the transcript is tailored to the user’s language choice, preparing it for accurate AI processing.

  • Transcript Handling: The application then processes and formats the retrieved transcript to ensure it meets the requirements of the generative AI model. This step involves cleaning and organizing the text for effective summarization by the AI.

AI-Powered Summarization:

  • Generative AI Model: The project incorporates Google's Gemini AI gemini-pro model to generate summaries. The model processes the video transcript along with a carefully crafted prompt to deliver concise, accurate, and context-aware summaries, eliminating the need for users to watch the entire video.

  • Custom Prompting: The system uses an intelligently designed prompt that guides the AI in producing relevant summaries, ensuring the key points from the video are captured and presented clearly.

Streamlit Application:

  • User-Friendly Interface: The entire application is built using Streamlit, which provides a smooth and interactive interface. This ensures that users can easily input video links, select languages, and view the summarized content, all in one place.

  • Real-Time Interaction: The application provides real-time feedback and results, allowing users to receive their video summaries almost instantly. This makes the experience not only efficient but also highly responsive to user actions.

References:


Contributing

Contributions to this project are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request.


License

This project is licensed under the MIT License. Please review the LICENSE file for more details.


Contact

📧 Email: gopiashokankiot@gmail.com

🌐 LinkedIn: linkedin.com/in/gopiashokan

For any further questions or inquiries, feel free to reach out. We are happy to assist you with any queries.

About

Developed an LLM application using the YouTube Transcript API and Google Gemini AI to generate clear summaries of YouTube videos. It extracts transcripts in various languages and uses AI to provide actionable insights. Built with Streamlit, the app features an intuitive interface for quick and efficient video summarization, boosting productivity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages