Skip to content

Commit 82d199f

Browse files
authored
Merge pull request #256 from snakers4/adamnsandle
Adamnsandle
2 parents 51b5245 + 5ba388d commit 82d199f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hubconf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
dependencies = ['torch', 'torchaudio']
22
import torch
33
import json
4-
import warnings
54
from utils_vad import (init_jit_model,
65
get_speech_timestamps,
76
get_number_ts,
@@ -30,7 +29,7 @@ def silero_vad(onnx=False, force_onnx_cpu=False):
3029
installed_version = torch.__version__
3130
supported_version = '1.12.0'
3231
if versiontuple(installed_version) < versiontuple(supported_version):
33-
warnings.warn(f'Please install torch {supported_version} or greater ({installed_version} installed)')
32+
raise Exception(f'Please install torch {supported_version} or greater ({installed_version} installed)')
3433

3534
hub_dir = torch.hub.get_dir()
3635
if onnx:

0 commit comments

Comments
 (0)