Skip to content
/ YT2Brief Public

YT2Brief: Transcribe and summarize YouTube videos using Langchain with power of LLMs.

Notifications You must be signed in to change notification settings

cyai/YT2Brief

Repository files navigation

YT2Brief 📺📝

YT2Brief is a fun project that turns lengthy YouTube videos into quick, easy-to-digest summaries. It uses natural language processing models like Langchain and OpenAI's LLMs to transcribe and summarize video content.

What You Get

  • 📜 Snappy summaries of YouTube videos
  • ⏱️ Save hours of watching long videos
  • 🤖 Cool NLP models like Langchain in action
  • 🔒 Your data stays private thanks to private LLMs

How do I use it?

  • Clone the repo

    git clone https://github.com/cyai/yt2Brief/
  • Install the dependencies

    pip install -r requirements.txt
  • Set environmental variables

    • Create a .env file in the root directory
    • Add the following variables to the file
      OPENAI_API_KEY=<your_openai_api_key>
      NOTION_API_KEY=<notion_api_key>
      NOTION_DATABASE_ID=<notion_database_id>

      Follow the instructions here to get your notion api key and the database id

  • Run the script

    python main.py
  • Enter the YouTube video URL and review your summary and enjoy 😊

Just a heads up, this is a pet project, so don't expect perfection. But I promise it's a neat little tool to have fun with.

Example:

For the video: https://www.youtube.com/watch?v=8Vt16kTtgm4

You get the result:

🎥 Video Summary: Embracing Aging and Defying Societal Norms 🎉

📝 The video transcript explores the cultural perception of aging and challenges the notion that "60 is the new 40." The speaker, a geriatric nurse, advocates for embracing and celebrating one's age instead of trying to relive younger years.

🌍 The concept of cultural lag is mentioned, highlighting the delay in societal attitudes towards aging compared to the rapid evolution of material culture.

🌟 The speaker encourages individuals to defy societal norms and stereotypes about aging, promoting innovation and creativity in the aging process.

💪 The importance of finding role models for aging and prioritizing physical and mental well-being is emphasized.

⏳ The potential for increased longevity is acknowledged, emphasizing the need to focus on quality of life rather than mere quantity.

🌈 The speaker suggests that cultivating wonder and discovering new passions can enhance the aging experience.

🤝 The significance of social connections and purpose in combating loneliness and maintaining good health is discussed.

📣 The transcript concludes with a call to change the narrative surrounding aging and to focus on the positive aspects of growing older.

Let's celebrate the beauty of aging and rewrite the story! 💪

TO DO:

Beautify Notion page

About

YT2Brief: Transcribe and summarize YouTube videos using Langchain with power of LLMs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages