From 0bc1ea782eeb09ff4638ace888b23f598f42ca39 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 12 May 2023 19:27:59 +0000 Subject: [PATCH] Format code (#270) Co-authored-by: github-actions[bot] --- gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui.py b/gui.py index 3e409d2..1aed430 100644 --- a/gui.py +++ b/gui.py @@ -133,9 +133,9 @@ class RVC: score, ix = self.index.search(npy, k=8) weight = np.square(1 / score) weight /= weight.sum(axis=1, keepdims=True) - npy = np.sum(self.big_npy[ix] * np.expand_dims(weight, axis=2), axis=1).astype( - "float16" - ) + npy = np.sum( + self.big_npy[ix] * np.expand_dims(weight, axis=2), axis=1 + ).astype("float16") feats = ( torch.from_numpy(npy).unsqueeze(0).to(device) * self.index_rate