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