Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import torch
|
|
3 |
from datasets import load_dataset
|
4 |
from transformers import pipeline, SpeechT5Processor, SpeechT5HifiGan, SpeechT5ForTextToSpeech
|
5 |
|
6 |
-
model_id = "
|
7 |
-
pipe = pipeline("text-to-speech", model="
|
8 |
model = SpeechT5ForTextToSpeech.from_pretrained(model_id)
|
9 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
10 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
|
|
3 |
from datasets import load_dataset
|
4 |
from transformers import pipeline, SpeechT5Processor, SpeechT5HifiGan, SpeechT5ForTextToSpeech
|
5 |
|
6 |
+
model_id = "gitgato/tts-model-v2" # update with your model id
|
7 |
+
pipe = pipeline("text-to-speech", model="gitgato/tts-model-v2")
|
8 |
model = SpeechT5ForTextToSpeech.from_pretrained(model_id)
|
9 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
10 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|