Usage¶
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)