Remove torch from requirements
This commit is contained in:
@@ -3,5 +3,3 @@ num2words
|
||||
omegaconf
|
||||
pydub
|
||||
PyYAML
|
||||
torch
|
||||
torchaudio
|
||||
|
||||
@@ -34,18 +34,15 @@ table = str.maketrans({
|
||||
'"': """,
|
||||
})
|
||||
|
||||
|
||||
def xmlesc(txt):
|
||||
return txt.translate(table)
|
||||
|
||||
|
||||
def load_model():
|
||||
model, example_text = torch.hub.load(repo_or_dir='snakers4/silero-models', model='silero_tts', language=params['language'], speaker=params['model_id'])
|
||||
model.to(params['device'])
|
||||
return model
|
||||
model = load_model()
|
||||
|
||||
|
||||
def output_modifier(string):
|
||||
"""
|
||||
This function is applied to the model outputs.
|
||||
@@ -73,7 +70,6 @@ def output_modifier(string):
|
||||
|
||||
print(string)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
output_modifier(sys.argv[1])
|
||||
|
||||
Reference in New Issue
Block a user