mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +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 json,yaml,warnings,torch
|
||||||
import platform
|
import platform
|
||||||
import psutil
|
import psutil
|
||||||
import os
|
import os,shutil
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
@ -11,6 +11,12 @@ now_dir = os.getcwd()
|
|||||||
tmp = os.path.join(now_dir, "TEMP")
|
tmp = os.path.join(now_dir, "TEMP")
|
||||||
os.makedirs(tmp, exist_ok=True)
|
os.makedirs(tmp, exist_ok=True)
|
||||||
os.environ["TEMP"] = tmp
|
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
|
import site
|
||||||
site_packages_roots = []
|
site_packages_roots = []
|
||||||
for path in site.getsitepackages():
|
for path in site.getsitepackages():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user