1
0
mirror of synced 2024-11-27 17:00:54 +01:00

feat: gui use dotenv

This commit is contained in:
源文雨 2023-09-03 02:07:49 +08:00
parent bce6fd7dcd
commit b5050fbf0d

View File

@ -1,9 +1,11 @@
import os
import logging
import sys
from dotenv import load_dotenv
load_dotenv()
os.environ["OMP_NUM_THREADS"] = "2"
os.environ["rmvpe_root"] = "assets/rmvpe"
if sys.platform == "darwin":
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"