ahnafsamin commited on
Commit
58c3446
1 Parent(s): 3c38273

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -7,10 +7,14 @@ import torch
7
  import scipy.io.wavfile
8
  from espnet2.bin.tts_inference import Text2Speech
9
  from espnet2.utils.types import str_or_none
 
 
 
 
10
 
11
  gos_text2speech = Text2Speech.from_pretrained(
12
  model_tag="https://huggingface.co/ahnafsamin/FastSpeech2-gronings/resolve/main/tts_train_fastspeech2_raw_char_tacotron_train.loss.ave.zip",
13
- vocoder_tag="parallel_wavegan/https://drive.google.com/file/d/10GYvB_mIKzXzSjD67tSnBhknZRoBjsNb"
14
  )
15
 
16
  def inference(text,lang):
 
7
  import scipy.io.wavfile
8
  from espnet2.bin.tts_inference import Text2Speech
9
  from espnet2.utils.types import str_or_none
10
+ from parallel_wavegan.utils import download_pretrained_model
11
+
12
+ url = "https://drive.google.com/file/d/10GYvB_mIKzXzSjD67tSnBhknZRoBjsNb"
13
+ download_path = download_pretrained_model(url)
14
 
15
  gos_text2speech = Text2Speech.from_pretrained(
16
  model_tag="https://huggingface.co/ahnafsamin/FastSpeech2-gronings/resolve/main/tts_train_fastspeech2_raw_char_tacotron_train.loss.ave.zip",
17
+ vocoder_tag=download_path
18
  )
19
 
20
  def inference(text,lang):