mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +08:00
Update webui.py
This commit is contained in:
parent
34a5ad7baa
commit
70a9c3d3e8
15
webui.py
15
webui.py
@ -25,13 +25,18 @@ for path in site.getsitepackages():
|
||||
if(site_packages_roots==[]):site_packages_roots=["%s/runtime/Lib/site-packages" % now_dir]
|
||||
#os.environ["OPENBLAS_NUM_THREADS"] = "4"
|
||||
os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1"
|
||||
os.environ["all_proxy"] = ""
|
||||
for site_packages_root in site_packages_roots:
|
||||
if os.path.exists(site_packages_root):
|
||||
with open("%s/users.pth" % (site_packages_root), "w") as f:
|
||||
f.write(
|
||||
"%s\n%s/tools\n%s/tools/damo_asr\n%s/GPT_SoVITS\n%s/tools/uvr5"
|
||||
% (now_dir, now_dir, now_dir, now_dir, now_dir)
|
||||
)
|
||||
try:
|
||||
with open("%s/users.pth" % (site_packages_root), "w") as f:
|
||||
f.write(
|
||||
"%s\n%s/tools\n%s/tools/damo_asr\n%s/GPT_SoVITS\n%s/tools/uvr5"
|
||||
% (now_dir, now_dir, now_dir, now_dir, now_dir)
|
||||
)
|
||||
break
|
||||
except PermissionError:
|
||||
pass
|
||||
from tools import my_utils
|
||||
import traceback
|
||||
import shutil
|
||||
|
Loading…
x
Reference in New Issue
Block a user