Mahiruoshi commited on
Commit
d0831db
1 Parent(s): 09f597a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,7 @@ def get_text(text, hps):
18
  text_norm = commons.intersperse(text_norm, 0)
19
  text_norm = torch.LongTensor(text_norm)
20
  return text_norm
21
- dev = torch.device("cpu")
22
  def selection(speaker):
23
  if speaker == "高咲侑":
24
  spk = 0
@@ -166,8 +166,8 @@ with app:
166
 
167
  tts_input1 = gr.TextArea(label="如需实现快速合成,建议在colab上克隆后运行本仓库", value="为什么你会那么熟练啊?你和雪菜亲过多少次了?我想做只属于你一个人的学院偶像,所以,请只注视我一个人,好吗?【中文】\nなんでそんなに慣れてんだよっ?せつ菜と…何回キスしたんだよ?どこまであたしを置いてきぼりにすれば気が済むんだよ?[日文]\nI can't choose just one(English)")
168
  language = gr.Dropdown(label="选择语言,目前勉强可以做到自动识别",choices=lan, value="自动", interactive=True)
169
- para_input1 = gr.Slider(minimum= 0.01,maximum=1.0,label="更改噪声比例,以控制情感", value=0.667)
170
- para_input2 = gr.Slider(minimum= 0.01,maximum=1.0,label="更改噪声偏差,以控制音素长短", value=0.7)
171
  para_input3 = gr.Slider(minimum= 0.1,maximum=10,label="更改时间比例", value=1)
172
  tts_submit = gr.Button("Generate", variant="primary")
173
  speaker1 = gr.Dropdown(label="选择说话人",choices=idols, value="歩夢", interactive=True)
 
18
  text_norm = commons.intersperse(text_norm, 0)
19
  text_norm = torch.LongTensor(text_norm)
20
  return text_norm
21
+ dev = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
22
  def selection(speaker):
23
  if speaker == "高咲侑":
24
  spk = 0
 
166
 
167
  tts_input1 = gr.TextArea(label="如需实现快速合成,建议在colab上克隆后运行本仓库", value="为什么你会那么熟练啊?你和雪菜亲过多少次了?我想做只属于你一个人的学院偶像,所以,请只注视我一个人,好吗?【中文】\nなんでそんなに慣れてんだよっ?せつ菜と…何回キスしたんだよ?どこまであたしを置いてきぼりにすれば気が済むんだよ?[日文]\nI can't choose just one(English)")
168
  language = gr.Dropdown(label="选择语言,目前勉强可以做到自动识别",choices=lan, value="自动", interactive=True)
169
+ para_input1 = gr.Slider(minimum= 0,maximum=1.0,label="更改噪声比例,以控制情感", value=0.667)
170
+ para_input2 = gr.Slider(minimum= 0,maximum=1.0,label="更改噪声偏差,以控制音素长短", value=0.7)
171
  para_input3 = gr.Slider(minimum= 0.1,maximum=10,label="更改时间比例", value=1)
172
  tts_submit = gr.Button("Generate", variant="primary")
173
  speaker1 = gr.Dropdown(label="选择说话人",choices=idols, value="歩夢", interactive=True)