Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,9 @@ if __name__ == "__main__":
|
|
| 119 |
with gr.Column():
|
| 120 |
with gr.Column():
|
| 121 |
|
| 122 |
-
gr.Markdown(
|
|
|
|
|
|
|
| 123 |
text = gr.TextArea(label="输入需要生成语音的文字", placeholder="输入文字",
|
| 124 |
value="在不在?能不能借给我三百块钱买可乐",
|
| 125 |
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字。字数越多,生成速度越慢,请耐心等待",
|
|
@@ -143,7 +145,7 @@ if __name__ == "__main__":
|
|
| 143 |
inputs=[text, sdp_ratio, noise_scale, noise_scale_w, length_scale, model],
|
| 144 |
outputs=[text_output, audio_output,MP3_output]
|
| 145 |
)
|
| 146 |
-
|
| 147 |
app.launch(show_error=True)
|
| 148 |
|
| 149 |
|
|
|
|
| 119 |
with gr.Column():
|
| 120 |
with gr.Column():
|
| 121 |
|
| 122 |
+
gr.Markdown('''
|
| 123 |
+
##测试用\n 模型路径在huggingface.co/spaces/Ailyth/Multi-voice-TTS/tree/main 的MODELS里面
|
| 124 |
+
''')
|
| 125 |
text = gr.TextArea(label="输入需要生成语音的文字", placeholder="输入文字",
|
| 126 |
value="在不在?能不能借给我三百块钱买可乐",
|
| 127 |
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字。字数越多,生成速度越慢,请耐心等待",
|
|
|
|
| 145 |
inputs=[text, sdp_ratio, noise_scale, noise_scale_w, length_scale, model],
|
| 146 |
outputs=[text_output, audio_output,MP3_output]
|
| 147 |
)
|
| 148 |
+
gr.HTML('''<div align=center><img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.laobi.icu/badge?page_id=Ailyth/DLMP9" /></div>''')
|
| 149 |
app.launch(show_error=True)
|
| 150 |
|
| 151 |
|