🔨 refactor whisper_live according to flake8
This commit is contained in:
+2
-2
@@ -34,7 +34,7 @@ class VoiceActivityDetection():
|
||||
|
||||
if sr != 16000 and (sr % 16000 == 0):
|
||||
step = sr // 16000
|
||||
x = x[:,::step]
|
||||
x = x[:, ::step]
|
||||
sr = 16000
|
||||
|
||||
if sr not in self.sample_rates:
|
||||
@@ -110,4 +110,4 @@ class VoiceActivityDetection():
|
||||
subprocess.run(["wget", "-O", model_filename, model_url], check=True)
|
||||
except subprocess.CalledProcessError:
|
||||
print("Failed to download the model using wget.")
|
||||
return model_filename
|
||||
return model_filename
|
||||
|
||||
Reference in New Issue
Block a user