Mahiruoshi
commited on
Commit
•
b933405
1
Parent(s):
26666f0
Update main.py
Browse files
main.py
CHANGED
@@ -43,9 +43,9 @@ class VitsGradio:
|
|
43 |
self.text = gr.TextArea(label="Text", value="你好")
|
44 |
with gr.Accordion(label="测试api", open=False):
|
45 |
self.local_chat1 = gr.Checkbox(value=False, label="使用网址+文本进行模拟")
|
46 |
-
self.url_input = gr.TextArea(label="
|
47 |
-
butto = gr.Button("
|
48 |
-
btnVC = gr.Button("
|
49 |
with gr.Column():
|
50 |
output2 = gr.TextArea(label="回复")
|
51 |
output1 = gr.Audio(label="采样率22050")
|
@@ -63,12 +63,12 @@ class VitsGradio:
|
|
63 |
self.local_chat1 = gr.Checkbox(value=False, label="启动本地chatbot")
|
64 |
self.local_chat2 = gr.Checkbox(value=True, label="是否量化")
|
65 |
res = gr.TextArea()
|
66 |
-
Botselection = gr.Button("
|
67 |
Botselection.click(self.check_bot, inputs=[self.api_input1,self.api_input2,self.local_chat1,self.local_chat2], outputs = [res])
|
68 |
self.input1 = gr.Dropdown(label = "模型", choices = self.modelPaths, value = self.modelPaths[0], type = "value")
|
69 |
self.input2 = gr.Dropdown(label="Language", choices=self.lan, value="自动", interactive=True)
|
70 |
with gr.Column():
|
71 |
-
btnVC = gr.Button("
|
72 |
self.input3 = gr.Dropdown(label="Speaker", choices=list(range(101)), value=0, interactive=True)
|
73 |
self.input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.267)
|
74 |
self.input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.7)
|
|
|
43 |
self.text = gr.TextArea(label="Text", value="你好")
|
44 |
with gr.Accordion(label="测试api", open=False):
|
45 |
self.local_chat1 = gr.Checkbox(value=False, label="使用网址+文本进行模拟")
|
46 |
+
self.url_input = gr.TextArea(label="键入测试", value="http://127.0.0.1:8080/chat?Text=")
|
47 |
+
butto = gr.Button("模拟前端抓取语音文件")
|
48 |
+
btnVC = gr.Button("测试tts+对话程序")
|
49 |
with gr.Column():
|
50 |
output2 = gr.TextArea(label="回复")
|
51 |
output1 = gr.Audio(label="采样率22050")
|
|
|
63 |
self.local_chat1 = gr.Checkbox(value=False, label="启动本地chatbot")
|
64 |
self.local_chat2 = gr.Checkbox(value=True, label="是否量化")
|
65 |
res = gr.TextArea()
|
66 |
+
Botselection = gr.Button("完成chatbot设定")
|
67 |
Botselection.click(self.check_bot, inputs=[self.api_input1,self.api_input2,self.local_chat1,self.local_chat2], outputs = [res])
|
68 |
self.input1 = gr.Dropdown(label = "模型", choices = self.modelPaths, value = self.modelPaths[0], type = "value")
|
69 |
self.input2 = gr.Dropdown(label="Language", choices=self.lan, value="自动", interactive=True)
|
70 |
with gr.Column():
|
71 |
+
btnVC = gr.Button("完成vits TTS端设定")
|
72 |
self.input3 = gr.Dropdown(label="Speaker", choices=list(range(101)), value=0, interactive=True)
|
73 |
self.input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.267)
|
74 |
self.input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.7)
|