Skip to content

Commit

Permalink
Merge pull request #109 from kadirnar/update-readme
Browse files Browse the repository at this point in the history
🍏 Add Lightning Mlx code to readme file
  • Loading branch information
kadirnar authored May 13, 2024
2 parents 48905a7 + 8f072ec commit ca9ff26
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 ca9ff26

Please sign in to comment.