Spaces:
Running
Running
CrawfordZhou
commited on
Commit
•
01381fa
1
Parent(s):
2b7b812
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def get_text(text, language_str, hps):
|
|
66 |
def infer(text, sdp_ratio, noise_scale, noise_scale_w, length_scale, sid):
|
67 |
global net_g
|
68 |
print(text)
|
69 |
-
bert, phones, tones, lang_ids = get_text(
|
70 |
with torch.no_grad():
|
71 |
x_tst=phones.to(device).unsqueeze(0)
|
72 |
tones=tones.to(device).unsqueeze(0)
|
@@ -128,7 +128,7 @@ if __name__ == "__main__":
|
|
128 |
with gr.Column():
|
129 |
gr.Markdown(value="""
|
130 |
#【AI嘉然】在线语音对话版(Bert-Vits2 + gpt)\n
|
131 |
-
![avatar](https://
|
132 |
(注:转发生成可能较慢,请等待大约2分钟哦,目前只支持中文语言的答案,其他语言的支持在开发中捏!)\n
|
133 |
作者:[Xz乔希](https://space.bilibili.com/5859321) & [碎语碎念](https://space.bilibili.com/4269384) 声音归属:[嘉然今天吃什么](https://space.bilibili.com/672328094) \n
|
134 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
|
|
66 |
def infer(text, sdp_ratio, noise_scale, noise_scale_w, length_scale, sid):
|
67 |
global net_g
|
68 |
print(text)
|
69 |
+
bert, phones, tones, lang_ids = get_text(text, "ZH", hps)
|
70 |
with torch.no_grad():
|
71 |
x_tst=phones.to(device).unsqueeze(0)
|
72 |
tones=tones.to(device).unsqueeze(0)
|
|
|
128 |
with gr.Column():
|
129 |
gr.Markdown(value="""
|
130 |
#【AI嘉然】在线语音对话版(Bert-Vits2 + gpt)\n
|
131 |
+
![avatar](https://img0.baidu.com/it/u=3803234914,1472318531&fm=253&fmt=auto&app=120&f=PNG?w=500&h=500) \n
|
132 |
(注:转发生成可能较慢,请等待大约2分钟哦,目前只支持中文语言的答案,其他语言的支持在开发中捏!)\n
|
133 |
作者:[Xz乔希](https://space.bilibili.com/5859321) & [碎语碎念](https://space.bilibili.com/4269384) 声音归属:[嘉然今天吃什么](https://space.bilibili.com/672328094) \n
|
134 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|