Skip to content

Commit

Permalink
缩短ChatTTS配置项长度
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jun 21, 2024
1 parent 6714488 commit c06ef51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5242,11 +5242,11 @@ async def fish_speech_load_model(data):
'请输入正确格式的URL': lambda value: common.is_url_check(value),
}
).style("width:200px;").tooltip("对接旧版webui的gradio接口,填webui的地址")
input_chattts_temperature = ui.input(label='温度', value=config.get("chattts", "temperature"), placeholder='默认:0.3').style("width:200px;").tooltip("Audio temperature,越大越发散,越小越保守")
input_chattts_audio_seed_input = ui.input(label='声音种子', value=config.get("chattts", "audio_seed_input"), placeholder='默认:-1').style("width:200px;").tooltip("声音种子,-1随机,1女生,4女生,8男生")
input_chattts_top_p = ui.input(label='top_p', value=config.get("chattts", "top_p"), placeholder='默认:0.7').style("width:200px;").tooltip("top_p")
input_chattts_top_k = ui.input(label='top_k', value=config.get("chattts", "top_k"), placeholder='默认:20').style("width:200px;").tooltip("top_k")
input_chattts_text_seed_input = ui.input(label='text_seed_input', value=config.get("chattts", "text_seed_input"), placeholder='默认:42').style("width:200px;").tooltip("text_seed_input")
input_chattts_temperature = ui.input(label='温度', value=config.get("chattts", "temperature"), placeholder='默认:0.3').style("width:100px;").tooltip("Audio temperature,越大越发散,越小越保守")
input_chattts_audio_seed_input = ui.input(label='声音种子', value=config.get("chattts", "audio_seed_input"), placeholder='默认:-1').style("width:100px;").tooltip("声音种子,-1随机,1女生,4女生,8男生")
input_chattts_top_p = ui.input(label='top_p', value=config.get("chattts", "top_p"), placeholder='默认:0.7').style("width:100px;").tooltip("top_p")
input_chattts_top_k = ui.input(label='top_k', value=config.get("chattts", "top_k"), placeholder='默认:20').style("width:100px;").tooltip("top_k")
input_chattts_text_seed_input = ui.input(label='text_seed_input', value=config.get("chattts", "text_seed_input"), placeholder='默认:42').style("width:100px;").tooltip("text_seed_input")
switch_chattts_refine_text_flag = ui.switch('refine_text', value=config.get("chattts", "refine_text_flag")).style(switch_internal_css)

with ui.card().style(card_css):
Expand Down

0 comments on commit c06ef51

Please sign in to comment.