mrfakename commited on
Commit
0330723
·
verified ·
1 Parent(s): 4f8f463

Sync from GitHub repo

Browse files

This Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there

Files changed (1) hide show
  1. src/f5_tts/infer/infer_cli.py +5 -1
src/f5_tts/infer/infer_cli.py CHANGED
@@ -178,7 +178,11 @@ ckpt_file = args.ckpt_file or config.get("ckpt_file", "")
178
  vocab_file = args.vocab_file or config.get("vocab_file", "")
179
 
180
  ref_audio = args.ref_audio or config.get("ref_audio", "infer/examples/basic/basic_ref_en.wav")
181
- ref_text = args.ref_text if args.ref_text is not None else config.get("ref_text", "Some call me nature, others call me mother nature.")
 
 
 
 
182
  gen_text = args.gen_text or config.get("gen_text", "Here we generate something just for test.")
183
  gen_file = args.gen_file or config.get("gen_file", "")
184
 
 
178
  vocab_file = args.vocab_file or config.get("vocab_file", "")
179
 
180
  ref_audio = args.ref_audio or config.get("ref_audio", "infer/examples/basic/basic_ref_en.wav")
181
+ ref_text = (
182
+ args.ref_text
183
+ if args.ref_text is not None
184
+ else config.get("ref_text", "Some call me nature, others call me mother nature.")
185
+ )
186
  gen_text = args.gen_text or config.get("gen_text", "Here we generate something just for test.")
187
  gen_file = args.gen_file or config.get("gen_file", "")
188