txya900619 commited on
Commit
9059222
1 Parent(s): faaa616

fix: update example

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -146,7 +146,7 @@ with demo:
146
  )
147
  speaker_wav = gr.Audio(
148
  label="客製化語音",
149
- visible=True,
150
  editable=False,
151
  type="filepath",
152
  waveform_options=gr.WaveformOptions(
@@ -162,7 +162,7 @@ with demo:
162
  value=list(models_config[default_model_id]["speaker_mapping"].values())[0],
163
  label="語者",
164
  interactive=len(models_config[default_model_id]["speaker_mapping"]) > 1,
165
- visible=False,
166
  )
167
  use_default_emb_or_custom_radio.change(
168
  use_default_emb_or_custom_radio_input,
@@ -233,14 +233,14 @@ with demo:
233
  [
234
  [
235
  "預設語者",
236
- "formosan_dict_ami#wav/formosan_dict_ami/000002_2.31-6.09.wav",
237
  "阿美",
238
  "南勢",
239
  "mikadavu ku vavainay, i vavahiyan, a luma’",
240
  ],
241
  [
242
  "預設語者",
243
- "formosan_dict_ami#wav/formosan_dict_ami/000035_0.00-3.69.wav",
244
  "阿美",
245
  "南勢",
246
  "mikadavu ku vavainay, i vavahiyan, a luma’",
 
146
  )
147
  speaker_wav = gr.Audio(
148
  label="客製化語音",
149
+ visible=False,
150
  editable=False,
151
  type="filepath",
152
  waveform_options=gr.WaveformOptions(
 
162
  value=list(models_config[default_model_id]["speaker_mapping"].values())[0],
163
  label="語者",
164
  interactive=len(models_config[default_model_id]["speaker_mapping"]) > 1,
165
+ visible=True,
166
  )
167
  use_default_emb_or_custom_radio.change(
168
  use_default_emb_or_custom_radio_input,
 
233
  [
234
  [
235
  "預設語者",
236
+ "klokah_ami#wav/klokah_ami/000017_1.50-4.53.wav.wav",
237
  "阿美",
238
  "南勢",
239
  "mikadavu ku vavainay, i vavahiyan, a luma’",
240
  ],
241
  [
242
  "預設語者",
243
+ "klokah_ami#wav/klokah_ami/000339_0.00-2.76.wav",
244
  "阿美",
245
  "南勢",
246
  "mikadavu ku vavainay, i vavahiyan, a luma’",