Format code (#850)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-07-24 18:19:03 +08:00 committed by GitHub
parent 23f64d3aa8
commit 3ae444b05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)