Skip to content

Commit 77071da

Browse files
authored
Update README.md
1 parent ef83028 commit 77071da

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ See [here](./f5_tts_mlx) for more options to customize generation.
4444
You can load a pretrained model from Python like this:
4545

4646
```python
47-
from f5_tts_mlx import F5TTS
47+
from f5_tts_mlx.generate import generate
4848

49-
f5tts = F5TTS.from_pretrained("lucasnewman/f5-tts-mlx")
50-
51-
audio = f5tts.sample(...)
49+
audio = generate(text = "Hello world.", ...)
5250
```
5351

5452
Pretrained model weights are also available [on Hugging Face](https://huggingface.co/lucasnewman/f5-tts-mlx).

0 commit comments

Comments
 (0)