cocktailpeanut commited on
Commit
376a452
1 Parent(s): dc00cc0
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ with gr.Blocks() as demo:
29
  if LANG == "EN":
30
  speaker = gr.Dropdown(en, interactive=True, value='EN-Default', label='Speaker')
31
  else:
32
- speaker = gr.Dropdown([LANG], interactive=True, value='EN-Default', label='Speaker')
33
  speed = gr.Slider(label='Speed', minimum=0.1, maximum=10.0, value=1.0, interactive=True, step=0.1)
34
  text = gr.Textbox(label="Text to speak", value='The field of text to speech has seen rapid development recently')
35
  btn = gr.Button('Synthesize', variant='primary')
 
29
  if LANG == "EN":
30
  speaker = gr.Dropdown(en, interactive=True, value='EN-Default', label='Speaker')
31
  else:
32
+ speaker = gr.Dropdown([LANG], interactive=True, value=LANG, label='Speaker')
33
  speed = gr.Slider(label='Speed', minimum=0.1, maximum=10.0, value=1.0, interactive=True, step=0.1)
34
  text = gr.Textbox(label="Text to speak", value='The field of text to speech has seen rapid development recently')
35
  btn = gr.Button('Synthesize', variant='primary')