GatinhoEducado
commited on
Commit
•
13f8a3e
1
Parent(s):
0bb8a04
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ processor = SpeechT5Processor.from_pretrained("GatinhoEducado/speechT5_tts-finet
|
|
26 |
model = SpeechT5ForTextToSpeech.from_pretrained("GatinhoEducado/speechT5_tts-finetuned-cml-tts").to(device)
|
27 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
28 |
|
29 |
-
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
30 |
speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
31 |
|
32 |
|
|
|
26 |
model = SpeechT5ForTextToSpeech.from_pretrained("GatinhoEducado/speechT5_tts-finetuned-cml-tts").to(device)
|
27 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
28 |
|
29 |
+
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation", trust_remote_code=True)
|
30 |
speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
31 |
|
32 |
|