Spaces:
Runtime error
Runtime error
Crawford.Zhou
commited on
Commit
•
c833f22
1
Parent(s):
c83f867
添加gpt
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def infer(text, key, sdp_ratio, noise_scale, noise_scale_w, length_scale, sid):
|
|
66 |
global net_g
|
67 |
message = gpt_35_api(key, text)
|
68 |
print(message)
|
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)
|
@@ -127,7 +127,6 @@ if __name__ == "__main__":
|
|
127 |
with gr.Column():
|
128 |
gr.Markdown(value="""
|
129 |
【AI贝拉】在线语音对话版(Bert-Vits2 + gpt)\n
|
130 |
-
(注:转发生成可能较慢,请等待大约2分钟哦!)\n
|
131 |
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
132 |
集成作者:碎语碎念 https://space.bilibili.com/4269384\n
|
133 |
声音归属:贝拉kira https://space.bilibili.com/672353429\n
|
|
|
66 |
global net_g
|
67 |
message = gpt_35_api(key, text)
|
68 |
print(message)
|
69 |
+
bert, phones, tones, lang_ids = get_text(message, "ZH", hps)
|
70 |
with torch.no_grad():
|
71 |
x_tst=phones.to(device).unsqueeze(0)
|
72 |
tones=tones.to(device).unsqueeze(0)
|
|
|
127 |
with gr.Column():
|
128 |
gr.Markdown(value="""
|
129 |
【AI贝拉】在线语音对话版(Bert-Vits2 + gpt)\n
|
|
|
130 |
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
131 |
集成作者:碎语碎念 https://space.bilibili.com/4269384\n
|
132 |
声音归属:贝拉kira https://space.bilibili.com/672353429\n
|