Git Product home page Git Product logo

youtube-ai's Introduction

Youtube Transcript Q&A Assistant

You may use this Python script to create a useful AI Q&A assistant that answers questions based on YouTube video transcriptions. The langchain_google_genai and youtube_transcript_api libraries are used to retrieve transcripts and offer answers.

Features.

  • Get transcripts of YouTube videos from URLs.
  • Respond to customer inquiries and create video transcripts.

Installation

  1. Clone the repository:

    git clone https://github.com/ShayanAliProgrammar/youtube-ai.git
  2. Install the essential prerequisites.

    pip install langchain==0.1.12 langchain-google-genai==0.0.11 youtube-transcript-api==0.6.2

Usage

  1. Run this script:

    python main.py
  2. When asked, provide the URL to an allowed YouTube video.

  3. Submit your question to the helper here.

  4. Receive the response generated from the video transcription that was provided.

Example

Here's a sample usage of the script:

Enter a YouTube video URL from youtube.com only: https://www.youtube.com/watch?v=video_id

--------------------------------------------------------------------------------------------------------------------------

Prompt (q to quit): How does the AI assistant work?

Answer: The AI assistant retrieves the video transcript from the specified YouTube URL and generates responses depending on the transcript content.

--------------------------------------------------------------------------------------------------------------------------

Prompt (q to quit): q

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.