Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -11
src/streamlit_app.py
CHANGED
|
@@ -145,20 +145,11 @@ with st.sidebar:
|
|
| 145 |
placeholder="Extra context appended after web snippets…",
|
| 146 |
)
|
| 147 |
|
| 148 |
-
st.
|
| 149 |
-
c1, c2 = st.columns(2)
|
| 150 |
-
with c1:
|
| 151 |
-
if st.button("Load sample"):
|
| 152 |
-
st.session_state.messages = [SAMPLE_USER_MSG, SAMPLE_ASSISTANT_MSG]
|
| 153 |
-
st.session_state.needs_answer = False
|
| 154 |
-
st.session_state.seeded = True
|
| 155 |
-
st.rerun()
|
| 156 |
-
with c2:
|
| 157 |
-
if st.button("Clear chat"):
|
| 158 |
st.session_state.messages = []
|
| 159 |
st.session_state.needs_answer = False
|
| 160 |
st.session_state.seeded = True
|
| 161 |
-
st.rerun()
|
| 162 |
|
| 163 |
|
| 164 |
# =========================
|
|
|
|
| 145 |
placeholder="Extra context appended after web snippets…",
|
| 146 |
)
|
| 147 |
|
| 148 |
+
if st.button("Clear chat"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
st.session_state.messages = []
|
| 150 |
st.session_state.needs_answer = False
|
| 151 |
st.session_state.seeded = True
|
| 152 |
+
st.rerun()
|
| 153 |
|
| 154 |
|
| 155 |
# =========================
|