pknayak commited on
Commit
faafa94
1 Parent(s): 0df14c8

modifying app.py

Browse files

changing the model from vanilla MS's SpeechT5 to Sanchit's fine tuned on Dutch model

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base",
15
  #processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
16
  processor = SpeechT5Processor.from_pretrained("sanchit-gandhi/speecht5_tts_vox_nl")
17
 
18
- model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts").to(device)
 
19
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
20
 
21
  embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
 
15
  #processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
16
  processor = SpeechT5Processor.from_pretrained("sanchit-gandhi/speecht5_tts_vox_nl")
17
 
18
+ # model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts").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")