We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51b5245 + 5ba388d commit 82d199fCopy full SHA for 82d199f
hubconf.py
@@ -1,7 +1,6 @@
1
dependencies = ['torch', 'torchaudio']
2
import torch
3
import json
4
-import warnings
5
from utils_vad import (init_jit_model,
6
get_speech_timestamps,
7
get_number_ts,
@@ -30,7 +29,7 @@ def silero_vad(onnx=False, force_onnx_cpu=False):
30
29
installed_version = torch.__version__
31
supported_version = '1.12.0'
32
if versiontuple(installed_version) < versiontuple(supported_version):
33
- warnings.warn(f'Please install torch {supported_version} or greater ({installed_version} installed)')
+ raise Exception(f'Please install torch {supported_version} or greater ({installed_version} installed)')
34
35
hub_dir = torch.hub.get_dir()
36
if onnx:
0 commit comments