diff --git a/README.md b/README.md index a6e8d30..1a14ad1 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,19 @@ text = mlx_whisper.transcribe( print(text) ``` +### 🍏 Lightning Mlx Whisper + +```python +from whisperplus.pipelines.lightning_whisper_mlx import LightningWhisperMLX +from whisperplus import download_youtube_to_mp3 + +url = "https://www.youtube.com/watch?v=1__CAdTJ5JU" +audio_path = download_youtube_to_mp3(url) + +whisper = LightningWhisperMLX(model="distil-large-v3", batch_size=12, quant=None) +output = whisper.transcribe(audio_path=audio_path)["text"] +``` + ### 📰 Summarization ```python