Skip to content

Sample code doesn't work #205

@chrisspen

Description

@chrisspen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions