Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,7 @@ If your input language is not Japanese, it will be translated to Japanese by Goo
|
|
47 |
article = """
|
48 |
|
49 |
"""
|
50 |
-
|
51 |
-
noise_scale_slider = gr.Slider(minimum=0.1, maximum=5, value=0.667, step=0.001, label='噪声比例 noise_scale')
|
52 |
-
noise_scale_w_slider = gr.Slider(minimum=0.1, maximum=5, value=0.8, step=0.1, label='噪声偏差 noise_scale_w')
|
53 |
|
54 |
def infer(text, character, language, duration, noise_scale, noise_scale_w):
|
55 |
if language == '日本語':
|
@@ -99,11 +97,10 @@ examples = [['お疲れ様です,トレーナーさん。', '1:无声铃鹿',
|
|
99 |
['授業中に出しだら,学校生活終わるですわ。', '12:目白麦昆','日本語'],
|
100 |
['お帰りなさい,お兄様!', '29:米浴','日本語'],
|
101 |
['私の処女をもらっでください!', '29:米浴','日本語']]
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
title=title, description=description, article=article, examples = examples).launch()
|
|
|
47 |
article = """
|
48 |
|
49 |
"""
|
50 |
+
|
|
|
|
|
51 |
|
52 |
def infer(text, character, language, duration, noise_scale, noise_scale_w):
|
53 |
if language == '日本語':
|
|
|
97 |
['授業中に出しだら,学校生活終わるですわ。', '12:目白麦昆','日本語'],
|
98 |
['お帰りなさい,お兄様!', '29:米浴','日本語'],
|
99 |
['私の処女をもらっでください!', '29:米浴','日本語']]
|
100 |
+
|
101 |
+
duration_slider = gr.Slider(minimum=0.1, maximum=5, value=1, step=0.1, label='时长 Duration')
|
102 |
+
noise_scale_slider = gr.Slider(minimum=0.1, maximum=5, value=0.667, step=0.001, label='噪声比例 noise_scale')
|
103 |
+
noise_scale_w_slider = gr.Slider(minimum=0.1, maximum=5, value=0.8, step=0.1, label='噪声偏差 noise_scale_w')
|
104 |
+
|
105 |
+
gr.Interface(fn=infer, inputs=[textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider], outputs=["text","audio"],
|
106 |
+
title=title, description=description, article=article, examples=examples).launch()
|
|