Update WarBot.py
Browse files
WarBot.py
CHANGED
@@ -40,6 +40,9 @@ def removeSigns(S):
|
|
40 |
return S
|
41 |
|
42 |
def prepare_punct():
|
|
|
|
|
|
|
43 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/snakers4/silero-models/master/models.yml',
|
44 |
'latest_silero_models.yml',
|
45 |
progress=False)
|
|
|
40 |
return S
|
41 |
|
42 |
def prepare_punct():
|
43 |
+
# Prepare the Punctuation Model
|
44 |
+
# Important! Enable for Unix version (python related)
|
45 |
+
# torch.backends.quantized.engine = 'qnnpack'
|
46 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/snakers4/silero-models/master/models.yml',
|
47 |
'latest_silero_models.yml',
|
48 |
progress=False)
|