add clear_chat
Browse files
app.py
CHANGED
@@ -41,6 +41,8 @@ if "options" not in st.session_state:
|
|
41 |
質問の答えを知らない場合は、誤った情報を共有しないでください。"""}
|
42 |
|
43 |
# サイドバー
|
|
|
|
|
44 |
st.sidebar.header("Options")
|
45 |
st.session_state["options"]["temperature"] = st.sidebar.slider("temperature", min_value=0.0, max_value=2.0, step=0.1, value=st.session_state["options"]["temperature"])
|
46 |
st.session_state["options"]["top_k"] = st.sidebar.slider("top_k", min_value=0, max_value=100, step=1, value=st.session_state["options"]["top_k"])
|
|
|
41 |
質問の答えを知らない場合は、誤った情報を共有しないでください。"""}
|
42 |
|
43 |
# サイドバー
|
44 |
+
clear_chat = st.sidebar.button(":sparkles: 新しくチャットを始める", key="clear_chat")
|
45 |
+
|
46 |
st.sidebar.header("Options")
|
47 |
st.session_state["options"]["temperature"] = st.sidebar.slider("temperature", min_value=0.0, max_value=2.0, step=0.1, value=st.session_state["options"]["temperature"])
|
48 |
st.session_state["options"]["top_k"] = st.sidebar.slider("top_k", min_value=0, max_value=100, step=1, value=st.session_state["options"]["top_k"])
|