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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytsum-0.1.6.tar.gz
  • Upload date:
  • Size: 4.2 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.6.tar.gz
Algorithm Hash digest
SHA256 cef55991cf124d0ef7ee00a7552f7580d9be5ecc1808ca4991fff79c8c5e5ba4
MD5 c8299f9e538297714080d91e2dde3b62
BLAKE2b-256 f7715084430e5eb2bc6cd62fe1492481e672baac798b55aae716f3054c3ed069

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytsum-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 072c798f3b5732e76c4de1ff44c9ab94af22aca3545cc7673958ba59667b23ae
MD5 a6b842d12f9619c5eb4b44fd0ca2eb2a
BLAKE2b-256 70fd61db932a10ca958f765882cb280dd7cc567ef446fccaad02e1aeefdc8101

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