From a507cbc9ca841753a751f56fd2094d9d51ce055d Mon Sep 17 00:00:00 2001 From: Emberstar <969242373@qq.com> Date: Mon, 2 Oct 2023 00:26:45 +0800 Subject: [PATCH] update: requirements.txt fix: parameter error --- app.py | 2 +- requirements.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index f3901d9..9f12ae3 100644 --- a/app.py +++ b/app.py @@ -420,7 +420,7 @@ def voice_bert_vits2_api(): length = float(request_data.get("length", app.config.get("LENGTH", 1))) noise = float(request_data.get("noise", app.config.get("NOISE", 0.667))) noisew = float(request_data.get("noisew", app.config.get("NOISEW", 0.8))) - sdp_ratio = float(request_data.get("noisew", app.config.get("SDP_RATIO", 0.2))) + sdp_ratio = float(request_data.get("sdp_ratio", app.config.get("SDP_RATIO", 0.2))) max = int(request_data.get("max", app.config.get("MAX", 50))) except Exception as e: logger.error(f"[Bert-VITS2] {e}") diff --git a/requirements.txt b/requirements.txt index 3d0bca9..ac5443c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,6 +27,8 @@ langid phonemizer==3.2.1 transformers num2words +mecab-python3 +unidic-lite # Machine Learning and Deep Learning torch