Skip to content

Siris2314/ytsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ytsum

PyPI PyPI - Downloads

Summarize YouTube videos instantly with the power of distil-whisper and Mixtral-8x7B

ytsum is a Python package that allows you to summarize YouTube videos by leveraging the power of distil-whisper for transcription and Mixtral-8x7B for generating detailed answers based on the video content.

Setup

To use ytsum, you need to get an API key from Together AI.

You can sign up and obtain your API key here: Together AI.

Installation

pip install ytsum
from ytsum import answer_youtube_question, set_together_api_key

# Set your Together AI API key
set_together_api_key("your_together_ai_api_key")

# Example usage
youtube_url = "https://www.youtube.com/watch?v=example"
query = "What is the main topic of this video?"

result = answer_youtube_question(youtube_url, query)

print(result)

Documentation

https://ytsum-docs.netlify.app/

Releases

No releases published

Packages

No packages published

Languages