Giter Site home page Giter Site logo

sejalkankriya / youtube-video-summarizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

A Streamlit app that utilizes LangChain and Google PALM to generate concise summaries of YouTube videos, enhancing content accessibility and comprehension

Home Page: https://yt-video-summarizer-ai.streamlit.app

License: MIT License

Python 100.00%
google-api google-palm langchain python video-summarization

youtube-video-summarizer's Introduction

YouTube Video Summarizer

YouTube Video Summarizer is a Python tool that leverages LangChain and Google PALM to automatically generate concise summaries of YouTube videos. This application uses advanced natural language processing techniques to extract meaningful information from video transcripts, providing users with quick insights without watching the entire content.

Features

  • Extracts video transcripts directly from YouTube URLs.
  • Utilizes Google PALM through the LangChain library to summarize text.
  • Handles large transcripts by splitting text into manageable chunks.

Prerequisites

  • Python 3.6+: Ensure you have Python 3.6 or higher installed on your machine.
  • Google Cloud Platform Account: You need to have a Google Cloud Platform account with a project set up and an API Key enabled for accessing Google PALM services. Follow the instructions here to set up your account and project.
  • Google API Key: Obtain your API key by visiting Google AI Studio API Key page. This key will be used to authenticate your requests to Google PALM.

Installation

  1. Clone the Repository

    git clone https://github.com/yourusername/youtube-video-summarizer.git
    cd youtube-video-summarizer
  2. Set up a Virtual Environment (Optional but recommended)

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install Dependencies

    pip install -r requirements.txt
    pip install --no-deps google-generativeai
  4. Environment Variables

    • Create a .env file in the root directory of your project.

    • Add your Google API key to the .env file:

      GOOGLE_API_KEY=your_google_api_key_here

Usage

Execute the the following command:

streamlit run main.py

Navigate to the provided local URL displayed in your command prompt or terminal to access the web interface. Enter a YouTube video URL into the input field and click the "Summarize" button to see the summary.

Note: The Google PALM LLM is presently in a research preview stage, which means access to the API could be restricted. Please ensure you adhere to Google's guidelines during this phase.

youtube-video-summarizer's People

Contributors

sejalkankriya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.