From f63783c34888a80db37a28c68f4b4765040b6257 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 22:56:30 +0800 Subject: [PATCH] Format code (#779) Co-authored-by: github-actions[bot] --- gui_v1.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gui_v1.py b/gui_v1.py index 1391efe..07ff3c9 100644 --- a/gui_v1.py +++ b/gui_v1.py @@ -48,7 +48,11 @@ if __name__ == "__main__": from i18n import I18nAuto i18n = I18nAuto() - device = torch.device("cuda" if torch.cuda.is_available() else ("mps" if torch.backends.mps.is_available() else "cpu")) + device = torch.device( + "cuda" + if torch.cuda.is_available() + else ("mps" if torch.backends.mps.is_available() else "cpu") + ) current_dir = os.getcwd() inp_q = Queue() opt_q = Queue() @@ -560,7 +564,8 @@ if __name__ == "__main__": else: outdata[:] = np.tile( nr.reduce_noise( - y=self.output_wav[:].cpu().numpy(), sr=self.config.samplerate + y=self.output_wav[:].cpu().numpy(), + sr=self.config.samplerate, ), (2, 1), ).T