mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-19 08:19:47 +08:00
撤回对于inference_webui的改动
This commit is contained in:
parent
47426d18e7
commit
b666becb19
@ -781,12 +781,6 @@ def get_tts_wav(
|
||||
if not ref_free:
|
||||
phones1, bert1, norm_text1 = get_phones_and_bert(prompt_text, prompt_language, version)
|
||||
|
||||
# 确保sample_steps为int
|
||||
try:
|
||||
sample_steps = int(sample_steps)
|
||||
except (TypeError, ValueError):
|
||||
sample_steps = 8
|
||||
|
||||
for i_text, text in enumerate(texts):
|
||||
# 解决输入目标文本的空行导致报错的问题
|
||||
if len(text.strip()) == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user