Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def new_main():
|
|
97 |
title = gr.Markdown("# <center>Tacotron Zero-short Voice Clone (Chinese Version)</center>")
|
98 |
gr.Markdown(
|
99 |
"""这是Zero-short语音克隆模型Tacotron的中文版本。<br>
|
100 |
-
1.
|
101 |
2. 输入想要合成的文本<br>
|
102 |
3. 点击Submit按钮,稍等30秒便可合成语音
|
103 |
"""
|
@@ -110,6 +110,14 @@ def new_main():
|
|
110 |
with gr.Row():
|
111 |
# clear = gr.ClearButton()
|
112 |
submit = gr.Button(value="Submit", variant='primary')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
with gr.Column():
|
114 |
output_audio = gr.Audio(type="file", label="Output Audio:")
|
115 |
|
|
|
97 |
title = gr.Markdown("# <center>Tacotron Zero-short Voice Clone (Chinese Version)</center>")
|
98 |
gr.Markdown(
|
99 |
"""这是Zero-short语音克隆模型Tacotron的中文版本。<br>
|
100 |
+
1. 上传想要克隆的人的一段语音,长度3~8秒即可。<br>
|
101 |
2. 输入想要合成的文本<br>
|
102 |
3. 点击Submit按钮,稍等30秒便可合成语音
|
103 |
"""
|
|
|
110 |
with gr.Row():
|
111 |
# clear = gr.ClearButton()
|
112 |
submit = gr.Button(value="Submit", variant='primary')
|
113 |
+
gr.Markdown("Audio Examples:")
|
114 |
+
gr.Examples(
|
115 |
+
examples=["exp/lihao_01.wav", "大家好,我是正在搬砖的李昊,这是一段合成音频。"],
|
116 |
+
inputs=[input_audio, input_text],
|
117 |
+
outputs=[output_audio],
|
118 |
+
fn=new_greet,
|
119 |
+
cache_examples=True,
|
120 |
+
)
|
121 |
with gr.Column():
|
122 |
output_audio = gr.Audio(type="file", label="Output Audio:")
|
123 |
|