From b5050fbf0d6b82305c589c59393b94ab72e606cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 3 Sep 2023 02:07:49 +0800 Subject: [PATCH] feat: gui use dotenv --- gui_v1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui_v1.py b/gui_v1.py index 9a2aebb..e5d39ff 100644 --- a/gui_v1.py +++ b/gui_v1.py @@ -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"