Skip to main content

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

Project description

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)

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.7.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.7-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytsum-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 47a3679f6781c058ff037859fcc284c2dcf1b4d24af2efd8efa8adfe539cec4b
MD5 2cd223a3b7a162a0550266c1258b68c3
BLAKE2b-256 3396098dd61bff4a35b09ada2a7d5dcf01cfb8466868418a3ba0810b46eb43bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytsum-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3f7e33f5d90c139ac74be71fba19cc0f849160ffd246afa8416b8c2ae8f62caa
MD5 9b14da1be53f4a5f58e2050dcb1ad568
BLAKE2b-256 4037b8a42c76f75e0671ba6ce12ca72b2f09aa59ed0c257fa747e9213abc868a

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