mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 19:41:56 +08:00
Add files via upload
This commit is contained in:
parent
2f3ab46bdf
commit
102d50819e
8
webui.py
8
webui.py
@ -1,7 +1,7 @@
|
||||
import json,yaml,warnings,torch
|
||||
import platform
|
||||
import psutil
|
||||
import os
|
||||
import os,shutil
|
||||
import signal
|
||||
|
||||
warnings.filterwarnings("ignore")
|
||||
@ -11,6 +11,12 @@ now_dir = os.getcwd()
|
||||
tmp = os.path.join(now_dir, "TEMP")
|
||||
os.makedirs(tmp, exist_ok=True)
|
||||
os.environ["TEMP"] = tmp
|
||||
if(os.path.exists(tmp)):
|
||||
for name in os.listdir(tmp):
|
||||
if(name=="jieba.cache"):continue
|
||||
path="%s/%s"%(tmp,name)
|
||||
delete=os.remove if os.path.isfile(path) else shutil.rmtree
|
||||
delete(path)
|
||||
import site
|
||||
site_packages_roots = []
|
||||
for path in site.getsitepackages():
|
||||
|
Loading…
x
Reference in New Issue
Block a user