OuroborosM commited on
Commit
40fa455
·
1 Parent(s): 732d2d6

correct tts defect

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="Hello, my dear. Glad to see you. hahahaha...", 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")
 
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")