aarnphm / whispercpp

Pybind11 bindings for Whisper.cpp
Apache License 2.0
325 stars 63 forks source link

bug: set_tokens is tokens: list[str] instead of tokens: list[int] in stub file #78

Closed dgtlntv closed 1 year ago

dgtlntv commented 1 year ago

Describe the bug

In the stub file the set_tokens function is documented as accepting tokens: list[str], when it should be tokens: list[int].

To reproduce

No response

Expected behavior

No response

Environment

python 3.10.9

aarnphm commented 1 year ago

happy for a PR to fix this issue