From 8cd1fdd372717d8879a2add3d10c20e190b0ea22 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:53:21 +0900 Subject: [PATCH] chore(format): run black on dev (#66) Co-authored-by: github-actions[bot] --- infer/lib/uvr5_pack/lib_v5/spec_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infer/lib/uvr5_pack/lib_v5/spec_utils.py b/infer/lib/uvr5_pack/lib_v5/spec_utils.py index 8f94085..120bae8 100644 --- a/infer/lib/uvr5_pack/lib_v5/spec_utils.py +++ b/infer/lib/uvr5_pack/lib_v5/spec_utils.py @@ -232,7 +232,7 @@ def cache_or_load(mix_path, inst_path, mp): sr=bp["sr"], mono=False, dtype=np.float32, - res_type=bp["res_type"] + res_type=bp["res_type"], ) y_wave[d], _ = librosa.load( inst_path, @@ -421,7 +421,9 @@ def cmb_spectrogram_to_wave(spec_m, mp, extra_bins_h=None, extra_bins=None): ), ) # wave = librosa.core.resample(wave2, bp['sr'], sr, res_type="sinc_fastest") - wave = librosa.resample(wave2, orig_sr=bp["sr"], target_sr=sr, res_type="scipy") + wave = librosa.resample( + wave2, orig_sr=bp["sr"], target_sr=sr, res_type="scipy" + ) return wave.T