Plachta commited on
Commit
44a0b09
1 Parent(s): 9a54593

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -11
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
- duration_slider = gr.Slider(minimum=0.1, maximum=5, value=1, step=0.1, label='时长 Duration')
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
- gr.Interface(fn=infer, inputs=[
103
- textbox,
104
- char_dropdown,
105
- language_dropdown,
106
- duration_slider,
107
- noise_scale_slider,
108
- noise_scale_w_slider], outputs=["text","audio"],
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()