Skip to content

Commit

Permalink
🍏 Add Lightning Mlx code to readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirnar committed May 13, 2024
1 parent 48905a7 commit 8f072ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f072ec

Please sign in to comment.