yuping322 commited on
Commit
a121c80
·
1 Parent(s): 3cab49b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -74,12 +74,9 @@ with gr.Blocks(css="style.css", title="文本转语音") as demo:
74
  info="请选择发音人",
75
  interactive=True)
76
 
77
- example = gr.Audio(label="试听",
78
- value="example/zh-CN-XiaoxiaoNeural.wav",
79
- interactive=False,
80
- elem_classes="example")
81
 
82
- voices.change(fn=changeVoice,inputs=voices,outputs=example)
 
83
  rate = gr.Slider(-100,
84
  100,
85
  step=1,
 
74
  info="请选择发音人",
75
  interactive=True)
76
 
 
 
 
 
77
 
78
+
79
+ voices.change(fn=changeVoice,inputs=voices)
80
  rate = gr.Slider(-100,
81
  100,
82
  step=1,