Spaces:
Sleeping
Sleeping
Vladimir Alabov
commited on
Commit
·
8668f22
1
Parent(s):
11d03f3
Fix inference_cmd
Browse files
app.py
CHANGED
@@ -75,8 +75,8 @@ def run_inference(input_audio, speaker):
|
|
75 |
soundfile.write(raw_path, audio, 16000, format="wav")
|
76 |
raw_path.seek(0)
|
77 |
|
78 |
-
inference_cmd = f"svc infer {raw_path
|
79 |
-
|
80 |
# out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
|
81 |
# auto_predict_f0=True,
|
82 |
# )
|
|
|
75 |
soundfile.write(raw_path, audio, 16000, format="wav")
|
76 |
raw_path.seek(0)
|
77 |
|
78 |
+
inference_cmd = f"svc infer {raw_path} -m {model_path} -c {config_path} {f'-k {cluster_path} -r {cluster_ratio}' if cluster_path != '' and cluster_ratio > 0 else ''} -t {transpose} --f0-method {f0_method} -n {noise_scale} -o {INFERENCE_OUTPUT_DIRNAME}/{raw_path.name} {'' if is_pitch_prediction_enabled else '--no-auto-predict-f0'}"
|
79 |
+
print(inference_cmd)
|
80 |
# out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
|
81 |
# auto_predict_f0=True,
|
82 |
# )
|