Skip to content

Commit 3ae444b

Browse files
Format code (#850)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 23f64d3 commit 3ae444b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

infer-web.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def load_hubert():
154154

155155
cpt = None
156156

157+
157158
def vc_single(
158159
sid,
159160
input_audio_path,
@@ -426,7 +427,8 @@ def get_vc(sid, to_return_protect0, to_return_protect1):
426427
else:
427428
net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
428429
del net_g, cpt
429-
if torch.cuda.is_available(): torch.cuda.empty_cache()
430+
if torch.cuda.is_available():
431+
torch.cuda.empty_cache()
430432
return {"visible": False, "__type__": "update"}
431433
person = "%s/%s" % (weight_root, sid)
432434
print("loading %s" % person)

0 commit comments

Comments
 (0)