mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-04 09:29:22 +08:00
fx
This commit is contained in:
@@ -3,7 +3,7 @@ requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
[project]
|
||||
name = "silero-vad"
|
||||
version = "5.1.2"
|
||||
version = "6.0.0"
|
||||
authors = [
|
||||
{name="Silero Team", email="hello@silero.ai"},
|
||||
]
|
||||
|
||||
@@ -29,7 +29,7 @@ def load_silero_vad(onnx=False, opset_version=16):
|
||||
model_file_path = str(impresources.files(package_path).joinpath(model_name))
|
||||
|
||||
if onnx:
|
||||
model = OnnxWrapper(model_file_path, force_onnx_cpu=True)
|
||||
model = OnnxWrapper(str(model_file_path), force_onnx_cpu=True)
|
||||
else:
|
||||
model = init_jit_model(model_file_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user