From b0ba38c288d5b5c31e126e47c1badb093365963b Mon Sep 17 00:00:00 2001 From: Ftps Date: Sat, 19 Aug 2023 22:50:24 +0900 Subject: [PATCH] add env --- .env | 9 +++++++++ infer-web.py | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..04bf864 --- /dev/null +++ b/.env @@ -0,0 +1,9 @@ +OPENBLAS_NUM_THREADS = 1 +no_proxy = localhost, 127.0.0.1, ::1 + +# You can change the location of the model, etc. by changing here +weight_root = assets/weights +weight_uvr5_root = assets/uvr5_weights +index_root = output +TEMP = tmp + diff --git a/infer-web.py b/infer-web.py index 1959ea0..53ab673 100644 --- a/infer-web.py +++ b/infer-web.py @@ -10,8 +10,6 @@ import warnings import numpy as np import torch -os.environ["OPENBLAS_NUM_THREADS"] = "1" -os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1" import logging import threading from random import shuffle