fix rel path for pip pkg usage
Browse files
src/f5_tts/infer/infer_cli.py
CHANGED
@@ -80,8 +80,8 @@ args = parser.parse_args()
|
|
80 |
config = tomli.load(open(args.config, "rb"))
|
81 |
|
82 |
ref_audio = args.ref_audio if args.ref_audio else config["ref_audio"]
|
83 |
-
if "
|
84 |
-
ref_audio = str(files("f5_tts").joinpath(f"
|
85 |
ref_text = args.ref_text if args.ref_text != "666" else config["ref_text"]
|
86 |
gen_text = args.gen_text if args.gen_text else config["gen_text"]
|
87 |
gen_file = args.gen_file if args.gen_file else config["gen_file"]
|
|
|
80 |
config = tomli.load(open(args.config, "rb"))
|
81 |
|
82 |
ref_audio = args.ref_audio if args.ref_audio else config["ref_audio"]
|
83 |
+
if "infer/examples/" in ref_audio: # for pip pkg user
|
84 |
+
ref_audio = str(files("f5_tts").joinpath(f"{ref_audio}"))
|
85 |
ref_text = args.ref_text if args.ref_text != "666" else config["ref_text"]
|
86 |
gen_text = args.gen_text if args.gen_text else config["gen_text"]
|
87 |
gen_file = args.gen_file if args.gen_file else config["gen_file"]
|