WinstonDeng commited on
Commit
9fecfa8
·
verified ·
1 Parent(s): 5f2d634

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -172,9 +172,9 @@ def main():
172
  with st.sidebar:
173
  st.header("⚙️ 设置")
174
  system_prompt = st.text_area("系统提示词", value="你是一个有帮助的 AI 助手。", height=80)
175
- max_tokens = st.slider("最大长度", 256, 131072, 4096, step=256, help="最大 128k")
176
- temperature = st.slider("Temperature", 0.0, 1.5, 0.7, step=0.1)
177
- top_p = st.slider("Top-p", 0.1, 1.0, 0.9, step=0.05)
178
 
179
  st.divider()
180
  if st.button("🗑️ 清空对话", use_container_width=True):
 
172
  with st.sidebar:
173
  st.header("⚙️ 设置")
174
  system_prompt = st.text_area("系统提示词", value="你是一个有帮助的 AI 助手。", height=80)
175
+ max_tokens = st.slider("最大长度", 256, 256000, 4096, step=256, help="最大 128k")
176
+ temperature = st.slider("Temperature", 0.0, 1, 0.7, step=0.1)
177
+ top_p = st.slider("Top-p", 0.1, 0.99, 0.9, step=0.05)
178
 
179
  st.divider()
180
  if st.button("🗑️ 清空对话", use_container_width=True):