Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/siris2314/ytsum

Summarize YT videos in one go using Mixtral
https://github.com/siris2314/ytsum

distil-whisper distil-whisper-large-v3 llm-inference llms mixtral-8x7b pypi-package togetherai

Last synced: 3 months ago
JSON representation

Summarize YT videos in one go using Mixtral

Awesome Lists containing this project

README

        

# ytsum

![PyPI](https://img.shields.io/pypi/v/ytsum?label=pypi%20package)
![PyPI - Downloads](https://img.shields.io/pypi/dm/ytsum)

## 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](https://www.together.ai/).

## Installation

```bash
pip install ytsum
```
```python
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/