Giter Club home page Giter Club logo

tube.ai's Introduction

Tube.AI - YouTube Summarizer and Chatbot

Tube.AI is an innovative YouTube summarizer bot with intelligent chatbot functionality that addresses the common issue faced by existing YouTube summarizers. While many bots heavily rely on video captions to understand and generate content, they fail when captions are unavailable. Tube.AI solves this problem by leveraging OpenAI's Whisper model to extract text from a video's audio, providing a robust solution for summarization and user queries.

Problem Statement

Most existing YouTube summarizer chatbots depend solely on video captions to comprehend the video content. When videos lack captions, these bots struggle to generate meaningful content, leading to a diminished user experience.

Solution Overview

Tube.AI employs a two-step approach to handle both scenarios of caption availability:

  1. Caption Presence:

    • If captions are available, Tube.AI utilizes the youtube-transcript api to extract them.
    • Extracted captions are then fed into the GPT model for content generation.
  2. Caption Absence:

    • If captions are not present, Tube.AI downloads the video's audio using ytdl-core.
    • OpenAI's Whisper model extracts text from the audio file.
    • The extracted text is then used as input for the GPT model for content generation.

The summarized content and extracted captions are stored in a .txt file, enabling the chatbot to refer to the video's context.

Features

  • Summarization:

    • Tube.AI summarizes YouTube videos intelligently, providing users with concise overviews.
  • Query Response:

    • The chatbot answers user queries about any YouTube video, ensuring an interactive experience.
  • Caption Handling:

    • Handles scenarios with or without video captions by employing advanced AI models.

Getting Started

  1. Clone the repository:

    git clone https://github.com/7Biscuits/TubeAI.git
    cd TubeAI
  2. Install dependencies:

    yarn
  3. Run the application:

    yarn dev

Usage

  • Set your OpenAI API key in .env file or hardcode it directly in the code file.
  • Provide the YouTube video ID to Tube.AI.
  • Tube.AI intelligently extracts content, summarizes the video, and responds to user queries.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code.


Tube.AI - Making YouTube content accessible and summarized for everyone!

tube.ai's People

Contributors

7biscuits 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.