Update audio_processing/T2A.py
Browse files- audio_processing/T2A.py +1 -1
audio_processing/T2A.py
CHANGED
@@ -8,7 +8,7 @@ class T2A:
|
|
8 |
def __init__(self, input_text: str):
|
9 |
self.inputs = tokenizer_mms_tts_eng(input_text, return_tensors="pt")
|
10 |
|
11 |
-
def
|
12 |
if self.inputs is not None:
|
13 |
with torch.no_grad():
|
14 |
output_model = model_mms_tts_eng(**self.inputs)
|
|
|
8 |
def __init__(self, input_text: str):
|
9 |
self.inputs = tokenizer_mms_tts_eng(input_text, return_tensors="pt")
|
10 |
|
11 |
+
def get_audio(self):
|
12 |
if self.inputs is not None:
|
13 |
with torch.no_grad():
|
14 |
output_model = model_mms_tts_eng(**self.inputs)
|