From 3ae444b05c0f064fccabb1a208f37d4a7a1d8484 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 18:19:03 +0800 Subject: [PATCH] Format code (#850) Co-authored-by: github-actions[bot] --- infer-web.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infer-web.py b/infer-web.py index 0717d3d..ec586ea 100644 --- a/infer-web.py +++ b/infer-web.py @@ -154,6 +154,7 @@ for name in os.listdir(weight_uvr5_root): cpt = None + def vc_single( sid, input_audio_path, @@ -426,7 +427,8 @@ def get_vc(sid, to_return_protect0, to_return_protect1): else: net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"]) del net_g, cpt - if torch.cuda.is_available(): torch.cuda.empty_cache() + if torch.cuda.is_available(): + torch.cuda.empty_cache() return {"visible": False, "__type__": "update"} person = "%s/%s" % (weight_root, sid) print("loading %s" % person)