Skip to main content

Summarize YouTube video instantly with the power of distill-whisper and Mixtral-8B

Project description

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.

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)

Models used

Distil-large-v3: https://huggingface.co/distil-whisper/distil-large-v3

Mixtral-8x7B-SFT: https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ytsum-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ytsum-0.1.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ytsum-0.1.5.tar.gz.

File metadata

  • Download URL: ytsum-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for ytsum-0.1.5.tar.gz
Algorithm Hash digest
SHA256 44a18daf78d830718a8701fdd9ea336f091d534fcf1d69e9338fba4cf28b3903
MD5 36fdb47d3e97b1b0ff2aa01e288f4dd3
BLAKE2b-256 106b51039d458132c2f5de19dbd446d13b604d93a3c140f29c28fd677789b355

See more details on using hashes here.

File details

Details for the file ytsum-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ytsum-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for ytsum-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0699585e3ecfbb057d27650d9907cb5c338cdeb22fed1b0639e004f7476ffdeb
MD5 ab1378cb0db84e7054a301d8824ef739
BLAKE2b-256 863110cd03da3ac2e8be5ac831822a4f5389c3a9f9fb7bb107c8cbcaf211854a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page