From 0cdcfcee8d945bd78b693981c22d2eda2ac2671e Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Sun, 29 Jun 2025 09:58:00 -0400 Subject: [PATCH] Remove redundant import and global in SileroOnnxModel --- src/pipecat/audio/vad/silero.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pipecat/audio/vad/silero.py b/src/pipecat/audio/vad/silero.py index d97e9b1df..57c302e49 100644 --- a/src/pipecat/audio/vad/silero.py +++ b/src/pipecat/audio/vad/silero.py @@ -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