diff --git a/infer-web.py b/infer-web.py index 47596d5..0e8ff4e 100644 --- a/infer-web.py +++ b/infer-web.py @@ -31,6 +31,7 @@ import traceback import threading import shutil import logging +import tempfile logging.getLogger("numba").setLevel(logging.WARNING) @@ -38,7 +39,7 @@ logging.getLogger("httpx").setLevel(logging.WARNING) logger = logging.getLogger(__name__) -tmp = os.path.join(now_dir, "TEMP") +tmp = os.path.join(tempfile.gettempdir(), "RVC") shutil.rmtree(tmp, ignore_errors=True) shutil.rmtree("%s/runtime/Lib/site-packages/infer_pack" % (now_dir), ignore_errors=True) shutil.rmtree("%s/runtime/Lib/site-packages/uvr5_pack" % (now_dir), ignore_errors=True) diff --git a/requirements.txt b/requirements.txt index 28635b8..da4d5f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ librosa==0.9.1 llvmlite==0.39.0 fairseq==0.12.2 faiss-cpu==1.7.3 -gradio==3.34.0 +gradio==3.48.0 Cython pydub>=0.25.1 soundfile>=0.12.1 @@ -16,7 +16,7 @@ tensorboardX Jinja2>=3.1.2 json5 Markdown -matplotlib>=3.7.0 +matplotlib<3.10 matplotlib-inline>=0.1.3 praat-parselmouth>=0.4.2 Pillow>=9.1.1 @@ -43,6 +43,7 @@ onnxruntime; sys_platform == 'darwin' onnxruntime-gpu; sys_platform != 'darwin' torchcrepe==0.0.20 fastapi==0.88 +torch<2.6 torchfcpe ffmpy==0.3.1 python-dotenv>=1.0.0