1
0
mirror of synced 2024-11-24 07:30:16 +01:00

Update infer-web.py

This commit is contained in:
RVC-Boss 2023-06-18 06:56:22 +00:00 committed by GitHub
parent 9253948f0d
commit ec0c39d9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
import os
import shutil
import sys
now_dir = os.getcwd()
sys.path.append(now_dir)
import traceback
import warnings
@ -38,8 +40,7 @@ from vc_infer_pipeline import VC
logging.getLogger("numba").setLevel(logging.WARNING)
now_dir = os.getcwd()
sys.path.append(now_dir)
tmp = os.path.join(now_dir, "TEMP")
shutil.rmtree(tmp, ignore_errors=True)
shutil.rmtree("%s/runtime/Lib/site-packages/infer_pack" % (now_dir), ignore_errors=True)