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 distill-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.0.tar.gz (1.8 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.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytsum-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 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.0.tar.gz
Algorithm Hash digest
SHA256 4e124b75a537a8ec8b23e86e93a95ccc94531124d5c915b5a8a2dfbbc31bdc9e
MD5 61ea252c4e565b7db22830085a232750
BLAKE2b-256 8eb32049b904095427526192c1e59660710bbc21680bbafa85dd0d151d48a979

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytsum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e678f5730706d2d7e036b4c62f172385735833a85596c01864f2b2d7d5c59d3
MD5 1b24c18545a20a950e79ddd8da0ec6f8
BLAKE2b-256 c89bd4241fa6e571154e3960e23d74b8c6e92b3f35055426fa30ec8543786cb5

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