Merge pull request #2090 from pipecat-ai/mb/silero-np-error

Remove redundant import and global in SileroOnnxModel
This commit is contained in:
Mark Backman
2025-07-02 11:28:11 -04:00
committed by GitHub

View File

@@ -46,10 +46,6 @@ class SileroOnnxModel:
path: Path to the ONNX model file.
force_onnx_cpu: Whether to force CPU execution provider.
"""
import numpy as np
global np
opts = onnxruntime.SessionOptions()
opts.inter_op_num_threads = 1
opts.intra_op_num_threads = 1