Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base",
|
|
13 |
|
14 |
# load text-to-speech checkpoint and speaker embeddings
|
15 |
model_name = "wuula/speecht5_tts_common_voice_zh"
|
16 |
-
processor = SpeechT5Processor.from_pretrained(
|
17 |
|
18 |
-
model = SpeechT5ForTextToSpeech.from_pretrained(
|
19 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
20 |
|
21 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
|
|
13 |
|
14 |
# load text-to-speech checkpoint and speaker embeddings
|
15 |
model_name = "wuula/speecht5_tts_common_voice_zh"
|
16 |
+
processor = SpeechT5Processor.from_pretrained(model_name)
|
17 |
|
18 |
+
model = SpeechT5ForTextToSpeech.from_pretrained(model_name).to(device)
|
19 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
20 |
|
21 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|