Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,13 +116,13 @@ if __name__ == "__main__":
|
|
| 116 |
theme='remilia/Ghostly'
|
| 117 |
|
| 118 |
with gr.Blocks(theme=theme) as app:
|
| 119 |
-
with gr.
|
| 120 |
with gr.Column():
|
| 121 |
|
| 122 |
gr.Markdown("测试用")
|
| 123 |
-
text = gr.TextArea(label="
|
| 124 |
value="在不在?能不能借给我三百块钱买可乐",
|
| 125 |
-
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500
|
| 126 |
)
|
| 127 |
model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='音声模型')
|
| 128 |
with gr.Accordion(label="展开设置生成参数", open=False):
|
|
@@ -132,9 +132,9 @@ if __name__ == "__main__":
|
|
| 132 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成语音总长度',info='数值越大,语速越慢')
|
| 133 |
btn = gr.Button("✨生成", variant="primary")
|
| 134 |
with gr.Column():
|
| 135 |
-
text_output = gr.Textbox(label="Message")
|
| 136 |
audio_output = gr.Audio(label="试听")
|
| 137 |
MP3_output = gr.File(label="下载")
|
|
|
|
| 138 |
gr.Markdown("""
|
| 139 |
|
| 140 |
""")
|
|
|
|
| 116 |
theme='remilia/Ghostly'
|
| 117 |
|
| 118 |
with gr.Blocks(theme=theme) as app:
|
| 119 |
+
with gr.Colum(elem_id=""):
|
| 120 |
with gr.Column():
|
| 121 |
|
| 122 |
gr.Markdown("测试用")
|
| 123 |
+
text = gr.TextArea(label="输入需要生成语音的文字", placeholder="输入文字",
|
| 124 |
value="在不在?能不能借给我三百块钱买可乐",
|
| 125 |
+
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字。字数越多,生成速度越慢,请耐心等待",
|
| 126 |
)
|
| 127 |
model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='音声模型')
|
| 128 |
with gr.Accordion(label="展开设置生成参数", open=False):
|
|
|
|
| 132 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成语音总长度',info='数值越大,语速越慢')
|
| 133 |
btn = gr.Button("✨生成", variant="primary")
|
| 134 |
with gr.Column():
|
|
|
|
| 135 |
audio_output = gr.Audio(label="试听")
|
| 136 |
MP3_output = gr.File(label="下载")
|
| 137 |
+
text_output = gr.Textbox(label="调试信息")
|
| 138 |
gr.Markdown("""
|
| 139 |
|
| 140 |
""")
|