Tuchuanhuhuhu commited on
Commit
e7faeb2
1 Parent(s): f4d005c

修复temperature上限

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py CHANGED
@@ -84,7 +84,7 @@ with gr.Blocks(css=customCSS,) as demo:
84
  with gr.Accordion("参数", open=False):
85
  top_p = gr.Slider(minimum=-0, maximum=1.0, value=1.0, step=0.05,
86
  interactive=True, label="Top-p (nucleus sampling)",)
87
- temperature = gr.Slider(minimum=-0, maximum=5.0, value=1.0,
88
  step=0.1, interactive=True, label="Temperature",)
89
  use_streaming_checkbox = gr.Checkbox(label="实时传输回答", value=True, visible=enable_streaming_option)
90
  use_websearch_checkbox = gr.Checkbox(label="使用在线搜索", value=False)
 
84
  with gr.Accordion("参数", open=False):
85
  top_p = gr.Slider(minimum=-0, maximum=1.0, value=1.0, step=0.05,
86
  interactive=True, label="Top-p (nucleus sampling)",)
87
+ temperature = gr.Slider(minimum=-0, maximum=2.0, value=1.0,
88
  step=0.1, interactive=True, label="Temperature",)
89
  use_streaming_checkbox = gr.Checkbox(label="实时传输回答", value=True, visible=enable_streaming_option)
90
  use_websearch_checkbox = gr.Checkbox(label="使用在线搜索", value=False)