Spaces:
Sleeping
Sleeping
Matthijs Hollemans
commited on
Commit
โข
6e9b076
1
Parent(s):
6a34194
change checkpoint
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ import torch
|
|
6 |
from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan
|
7 |
|
8 |
|
9 |
-
checkpoint = "
|
10 |
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
11 |
model = SpeechT5ForTextToSpeech.from_pretrained(checkpoint)
|
12 |
-
vocoder = SpeechT5HifiGan.from_pretrained("
|
13 |
|
14 |
|
15 |
speaker_embeddings = {
|
|
|
6 |
from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan
|
7 |
|
8 |
|
9 |
+
checkpoint = "microsoft/speecht5_tts"
|
10 |
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
11 |
model = SpeechT5ForTextToSpeech.from_pretrained(checkpoint)
|
12 |
+
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
13 |
|
14 |
|
15 |
speaker_embeddings = {
|