Spaces:
Running
Running
Update app.py
Browse files
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,
|
| 176 |
-
temperature = st.slider("Temperature", 0.0, 1
|
| 177 |
-
top_p = st.slider("Top-p", 0.1,
|
| 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):
|