whispercpp
whispercpp copied to clipboard
Sample code doesn't work
Describe the bug
Attempting to run the sample code results in the error type object 'whispercpp.Whisper' has no attribute 'from_pretrained'
$ python
Python 3.11.7 (main, Dec 8 2023, 18:56:57) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from whispercpp import Whisper
Saving models to: ~/.ggml-models
>>> w = Whisper.from_pretrained("medium.en")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'whispercpp.Whisper' has no attribute 'from_pretrained'
To reproduce
No response
Expected behavior
No response
Environment
Ubuntu 22.04, Python 3.11.7