Spaces:
Running
Running
Roi Feng
commited on
Commit
•
fff2b19
1
Parent(s):
407fbef
fix model route and add description
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def tts_fn(text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale, l
|
|
120 |
if __name__ == "__main__":
|
121 |
parser = argparse.ArgumentParser()
|
122 |
parser.add_argument(
|
123 |
-
"-m", "--model", default="./logs/as/
|
124 |
)
|
125 |
parser.add_argument(
|
126 |
"-c",
|
@@ -167,10 +167,18 @@ if __name__ == "__main__":
|
|
167 |
with gr.Blocks() as app:
|
168 |
with gr.Row():
|
169 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
text = gr.TextArea(
|
171 |
label="Text",
|
172 |
placeholder="Input Text Here",
|
173 |
-
value="
|
174 |
)
|
175 |
speaker = gr.Dropdown(
|
176 |
choices=speakers, value=speakers[0], label="Speaker"
|
@@ -190,7 +198,7 @@ if __name__ == "__main__":
|
|
190 |
language = gr.Dropdown(
|
191 |
choices=languages, value=languages[0], label="Language"
|
192 |
)
|
193 |
-
btn = gr.Button("Generate
|
194 |
with gr.Column():
|
195 |
text_output = gr.Textbox(label="Message")
|
196 |
audio_output = gr.Audio(label="Output Audio")
|
|
|
120 |
if __name__ == "__main__":
|
121 |
parser = argparse.ArgumentParser()
|
122 |
parser.add_argument(
|
123 |
+
"-m", "--model", default="./logs/as/G_7500.pth", help="path of your model"
|
124 |
)
|
125 |
parser.add_argument(
|
126 |
"-c",
|
|
|
167 |
with gr.Blocks() as app:
|
168 |
with gr.Row():
|
169 |
with gr.Column():
|
170 |
+
gr.Markdown(value="""
|
171 |
+
【AI以里illi】在线语音合成 Bert-Vits2\n
|
172 |
+
作者:Rayzggz https://space.bilibili.com/10501326\n
|
173 |
+
声音来源:以里illi https://space.bilibili.com/3035038\n
|
174 |
+
Bert-VITS2:https://github.com/fishaudio/Bert-VITS2\n
|
175 |
+
使用本模型请遵守中华人民共和国和美利坚合众国法律!\n
|
176 |
+
基于本模型的所有生成内容均需标注使用AI生成并且标注本项目地址\n
|
177 |
+
""")
|
178 |
text = gr.TextArea(
|
179 |
label="Text",
|
180 |
placeholder="Input Text Here",
|
181 |
+
value="野生的门卫室魔法师出现了!",
|
182 |
)
|
183 |
speaker = gr.Dropdown(
|
184 |
choices=speakers, value=speakers[0], label="Speaker"
|
|
|
198 |
language = gr.Dropdown(
|
199 |
choices=languages, value=languages[0], label="Language"
|
200 |
)
|
201 |
+
btn = gr.Button("Generate 生成!", variant="primary")
|
202 |
with gr.Column():
|
203 |
text_output = gr.Textbox(label="Message")
|
204 |
audio_output = gr.Audio(label="Output Audio")
|