Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,9 @@ asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base",
|
|
15 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
16 |
|
17 |
# model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts").to(device)
|
18 |
-
|
19 |
-
|
|
|
20 |
|
21 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
22 |
|
|
|
15 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
16 |
|
17 |
# model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts").to(device)
|
18 |
+
|
19 |
+
model = VitsModel.from_pretrained("Matthijs/mms-tts-nld").to(device)
|
20 |
+
tokenizer = VitsTokenizer.from_pretrained("Matthijs/mms-tts-nld").to(device)
|
21 |
|
22 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
23 |
|