Spaces:
Runtime error
Runtime error
Commit
·
40fa455
1
Parent(s):
732d2d6
correct tts defect
Browse files
app.py
CHANGED
|
@@ -129,7 +129,7 @@ def text_to_speech_loc2(text):
|
|
| 129 |
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|
| 130 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
| 131 |
|
| 132 |
-
inputs = processor(text
|
| 133 |
|
| 134 |
# load xvector containing speaker's voice characteristics from a dataset
|
| 135 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
|
|
|
| 129 |
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|
| 130 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
| 131 |
|
| 132 |
+
inputs = processor(text, return_tensors="pt")
|
| 133 |
|
| 134 |
# load xvector containing speaker's voice characteristics from a dataset
|
| 135 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|