KdaiP commited on
Commit
99a6f35
·
verified ·
1 Parent(s): 48125c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=1, length_scale=1)['decoder_outputs']
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(