Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def inference(text: str, ref_audio: torch.Tensor, checkpoint_path: str, step: in
|
|
38 |
y = mel_extractor(waveform).to(device)
|
39 |
|
40 |
# inference
|
41 |
-
mel = tts_model.synthesise(x, x_len, step, y=y, temperature=
|
42 |
audio = vocoder(mel)
|
43 |
|
44 |
# process output for gradio
|
@@ -97,7 +97,7 @@ def main():
|
|
97 |
input_text_gr = gr.Textbox(
|
98 |
label="Input Text",
|
99 |
info="One or two sentences at a time is better. Up to 200 text characters.",
|
100 |
-
value="
|
101 |
)
|
102 |
|
103 |
ref_audio_gr = gr.Dropdown(
|
|
|
38 |
y = mel_extractor(waveform).to(device)
|
39 |
|
40 |
# inference
|
41 |
+
mel = tts_model.synthesise(x, x_len, step, y=y, temperature=0.667, length_scale=1)['decoder_outputs']
|
42 |
audio = vocoder(mel)
|
43 |
|
44 |
# process output for gradio
|
|
|
97 |
input_text_gr = gr.Textbox(
|
98 |
label="Input Text",
|
99 |
info="One or two sentences at a time is better. Up to 200 text characters.",
|
100 |
+
value="三国杀是一款风靡中国的智力卡牌桌游,以三国为背景、以身份为线索、以武将为角色,构建起一个集历史、文学、美术、游戏等元素于一身的桌面游戏世界!",
|
101 |
)
|
102 |
|
103 |
ref_audio_gr = gr.Dropdown(
|