Skip to content

Commit

Permalink
完善代码
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterH0323 committed Jun 12, 2024
1 parent 69dcf7f commit 58336f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utils/tts/gpt_sovits/inference_gpt_sovits.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,7 @@ def gen_tts_wav(
how_to_cut="凑四句一切", # ["不切", "凑四句一切", "凑50字一切", "按中文句号。切", "按英文句号.切", "按标点符号切"]
):

process_bar = None
# process_bar = st.progress(0, text="正在生成语音...")
process_bar = st.progress(0, text="正在生成语音...")

# 推理
sampling_rate, audio_data = get_tts_wav(
Expand Down Expand Up @@ -627,8 +626,8 @@ def gen_tts_wav(
process_bar=process_bar,
)

# process_bar.progress(1, text=f"正在生成语音 100.00 % ...")
# process_bar.empty()
process_bar.progress(1, text=f"正在生成语音 100.00 % ...")
process_bar.empty()

# 保存
wav = BytesIO()
Expand Down

0 comments on commit 58336f2

Please sign in to comment.