MCPcopy Create free account
hub / github.com/aarnphm/whispercpp / test_invalid_models

Function test_invalid_models

tests/export_test.py:39–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_invalid_models():
40 with p.raises(RuntimeError):
41 w.Whisper.from_pretrained("whisper_v0.1")
42 with p.raises(RuntimeError):
43 w.Whisper.from_params(
44 "whisper_v0.1", w.api.Params.from_enum(w.api.SAMPLING_GREEDY)
45 )
46
47
48def test_forbid_init():

Callers

nothing calls this directly

Calls 3

from_pretrainedMethod · 0.80
from_paramsMethod · 0.80
from_enumMethod · 0.80

Tested by

no test coverage detected