chenxie95 commited on
Commit
e93aed5
·
verified ·
1 Parent(s): a1ebd12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -31,12 +31,6 @@ tts_model_collections = {
31
  str(cached_path("hf://SWivid/F5-TTS/F5TTS_v1_Base/model_1250000.safetensors")),
32
  vocab_file=str(cached_path("hf://SWivid/F5-TTS/F5TTS_v1_Base/vocab.txt")),
33
  ),
34
- "v1-base_zh-en_2": load_model(
35
- DiT,
36
- v1_base_cfg,
37
- str(cached_path("hf://SWivid/F5-TTS/F5TTS_v1_Base/model_1250000.safetensors")),
38
- vocab_file=str(cached_path("hf://SWivid/F5-TTS/F5TTS_v1_Base/vocab.txt")),
39
- ),
40
  }
41
 
42
 
@@ -111,9 +105,9 @@ with gr.Blocks() as app_basic_tts:
111
  return audio_out, ref_text_out, used_seed
112
 
113
  ref_wav_input.clear(
114
- lambda: [None],
115
  None,
116
- [ref_txt_input],
117
  )
118
 
119
  generate_btn.click(
 
31
  str(cached_path("hf://SWivid/F5-TTS/F5TTS_v1_Base/model_1250000.safetensors")),
32
  vocab_file=str(cached_path("hf://SWivid/F5-TTS/F5TTS_v1_Base/vocab.txt")),
33
  ),
 
 
 
 
 
 
34
  }
35
 
36
 
 
105
  return audio_out, ref_text_out, used_seed
106
 
107
  ref_wav_input.clear(
108
+ lambda: gr.update(),
109
  None,
110
+ ref_txt_input,
111
  )
112
 
113
  generate_btn.click(