Learn with AI is a AI system made using free ML environment, leveraging language models and ChatGPT APIs to extract insights from YouTube videos, and empowering yourself to learn faster and more efficiently like never before!
Usage :
- Get transcript
- Translate the transcript to 30+ languages
- Get Summary of the transcript using Hugging-face and ChatGPT.
- Save 70% of watching the youtube video's.
- Install and import all the Libraries required
!pip install python-dotenv
!pip install openai
!pip install youtube_dl
!pip install youtube_transcript_api
!pip install torchaudio
!pip install sentencepiece
!pip install sacremoses
!pip install transformers
import re
from youtube_transcript_api import YouTubeTranscriptApi
import torch
import torchaudio
import openai
import textwrap
from transformers import pipeline
The transcript obtain is of : 5403 Words, 26310 Characters
-
We can get the transcript converted to any language with the help of various ML models available in Hugging-face. remember to change the check point according to your preference language.
model_checkpoint = "Helsinki-NLP/opus-mt-en-es" translator = pipeline("translation", model=model_checkpoint)
-
Now Lets get the summary of the transcript obtained using Opensource ML models available in Hugging-Face. And the Summarized text has only 2259 Words ie Almost 50% summarized.