Add optional TwelveLabs Pegasus transcription backend - #22
Open
mohit-twelvelabs wants to merge 1 commit into
Open
Add optional TwelveLabs Pegasus transcription backend#22mohit-twelvelabs wants to merge 1 commit into
mohit-twelvelabs wants to merge 1 commit into
Conversation
Adds an opt-in notebook cell that transcribes the video with TwelveLabs
Pegasus instead of Faster Whisper. Pegasus watches the video server-side
(no GPU) and emits the same {start, end, text} fragments, so the existing
merge and translate cells work unchanged. Defaults keep Whisper; enabled
only when use_twelvelabs is ticked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! I'm Mohit, I work at TwelveLabs (@mohit-twelvelabs).
This adds an opt-in transcription backend to the notebook using TwelveLabs Pegasus, a video-understanding model, as an alternative to Faster Whisper.
What it adds
use_twelvelabsto transcribe with Pegasus; leave it unchecked and the notebook behaves exactly as before (Whisper output is kept).{start, end, text}fragmentsshape Whisper produces and setslanguage_detected, so the existing Merge and Translate cells run unchanged.Why it helps this project
Pegasus watches the video server-side rather than only listening to the audio, so it tends to do better on on-screen text, speaker context and noisy audio — and it needs no local GPU, which is handy for users without an RTX card or who hit Colab GPU limits.
Opt-in / non-breaking
Defaults are untouched:
use_twelvelabs = False. No existing cell, dependency or default behavior changes. The only new dependency (twelvelabs>=1.2.8) is installed lazily inside the opt-in cell.How it was tested
client.analyze(model_name=, video=VideoContext_Url(url=), prompt=, max_tokens=)signature andresponse.datafield against the official SDKtwelvelabs==1.2.8.You can grab a free API key at https://twelvelabs.io — there's a generous free tier.