str20tbl commited on
Commit
933b99a
·
1 Parent(s): 827cd46
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -8,10 +8,8 @@ from transformers import SpeechT5ForTextToSpeech, SpeechT5Processor, SpeechT5Hif
8
 
9
  checkpoint = "microsoft/speecht5_tts"
10
  processor = SpeechT5Processor.from_pretrained(checkpoint)
11
- vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
12
- model = SpeechT5ForTextToSpeech.from_pretrained(
13
- "techiaith/microsoft_speecht5_finetuned_bu_tts_cy_en"
14
- )
15
 
16
  speaker_embeddings = {
17
  "GGP": "spkemb/speaker0.npy",
 
8
 
9
  checkpoint = "microsoft/speecht5_tts"
10
  processor = SpeechT5Processor.from_pretrained(checkpoint)
11
+ vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan", from_tf=True)
12
+ model = SpeechT5ForTextToSpeech.from_pretrained("techiaith/microsoft_speecht5_finetuned_bu_tts_cy_en")
 
 
13
 
14
  speaker_embeddings = {
15
  "GGP": "spkemb/speaker0.npy",