Spaces:
Build error
Build error
Commit
·
335b346
1
Parent(s):
39d41fb
Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,6 @@ from espnet2.utils.types import str_or_none
|
|
11 |
gos_text2speech = Text2Speech.from_pretrained(
|
12 |
model_tag="https://huggingface.co/ahnafsamin/FastSpeech2-gronings/blob/main/train.loss.ave_5best.pth",
|
13 |
vocoder_tag="parallel_wavegan/ljspeech_parallel_wavegan.v3",
|
14 |
-
device="cpu",
|
15 |
-
threshold=0.5,
|
16 |
-
minlenratio=0.0,
|
17 |
-
maxlenratio=10.0,
|
18 |
-
use_att_constraint=True,
|
19 |
-
backward_window=1,
|
20 |
-
forward_window=4,
|
21 |
)
|
22 |
|
23 |
def inference(text,lang):
|
|
|
11 |
gos_text2speech = Text2Speech.from_pretrained(
|
12 |
model_tag="https://huggingface.co/ahnafsamin/FastSpeech2-gronings/blob/main/train.loss.ave_5best.pth",
|
13 |
vocoder_tag="parallel_wavegan/ljspeech_parallel_wavegan.v3",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
)
|
15 |
|
16 |
def inference(text,lang):
|