YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
YouTube Video to Text Summary Tool
This Jupyter Notebook tool transforms YouTube videos into concise text summaries using Whisper and ChatGPT 4.
Overview
Leverage pytube
, openai
, and whisper
Python libraries to:
- Download Audio: Extract audio from YouTube URLs via
pytube
. - Transcribe Audio: Convert audio to text with the Whisper library.
- Summarize Text: Create succinct summaries from transcriptions using ChatGPT 4, emphasizing key points and context.
Usage Guide
Set Up: Install required libraries with pip:
pip install pytube openai git+https://github.com/openai/whisper.git
Get Started: Clone the repository with the Jupyter Notebook.
Launch Notebook: Open
YoutubeScript.ipynb
in Jupyter.Run Notebook: Sequentially execute cells, inputting the YouTube URL when asked.
Generate Summary: Follow on-screen prompts to download audio, transcribe, and summarize.
Review Summary: Access the final summary in
summary.txt
.
Using the Code for Telegram Bot
To use the code for creating a Telegram bot that generates text summaries from YouTube URLs:
- Visit YT_SummaryBot on Telegram.
- Send the command
/summarize
to the bot. - The bot will ask you for the YouTube URL.
- Reply to the bot with the YouTube URL.
- The bot will provide you with the text summary.
Acknowledgments
- pytube: YouTube video downloads.
- OpenAI: ChatGPT 4 model provision.
- Whisper: Audio transcription.