aoliveira commited on
Commit
76f3218
1 Parent(s): 5a4c6c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #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")
 
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")