Skip to content

Commit

Permalink
update: requirements.txt
Browse files Browse the repository at this point in the history
fix: parameter error
  • Loading branch information
Artrajz committed Oct 1, 2023
1 parent 69308f2 commit a507cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ langid
phonemizer==3.2.1
transformers
num2words
mecab-python3
unidic-lite

# Machine Learning and Deep Learning
torch
Expand Down

0 comments on commit a507cbc

Please sign in to comment.