Spaces:
Runtime error
Runtime error
Matthijs Hollemans
commited on
Commit
β’
8f31428
1
Parent(s):
2b82728
change checkpoint
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import torch
|
|
5 |
|
6 |
from transformers import SpeechT5Processor, SpeechT5ForSpeechToSpeech, SpeechT5HifiGan
|
7 |
|
8 |
-
checkpoint = "
|
9 |
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
10 |
model = SpeechT5ForSpeechToSpeech.from_pretrained(checkpoint)
|
11 |
-
vocoder = SpeechT5HifiGan.from_pretrained("
|
12 |
|
13 |
|
14 |
speaker_embeddings = {
|
|
|
5 |
|
6 |
from transformers import SpeechT5Processor, SpeechT5ForSpeechToSpeech, SpeechT5HifiGan
|
7 |
|
8 |
+
checkpoint = "microsoft/speecht5_vc"
|
9 |
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
10 |
model = SpeechT5ForSpeechToSpeech.from_pretrained(checkpoint)
|
11 |
+
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
12 |
|
13 |
|
14 |
speaker_embeddings = {
|