Spaces:
Running
Running
mrfakename
commited on
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
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 =
|
|
|
|
|
|
|
|
|
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 |
|