feat: gui use dotenv
This commit is contained in:
parent
bce6fd7dcd
commit
b5050fbf0d
@ -1,9 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
os.environ["OMP_NUM_THREADS"] = "2"
|
os.environ["OMP_NUM_THREADS"] = "2"
|
||||||
os.environ["rmvpe_root"] = "assets/rmvpe"
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user