Spaces:
Sleeping
Sleeping
collinschreyer-dev commited on
Commit ·
02134bc
1
Parent(s): ea523d0
Fix sample question buttons to trigger rerun
Browse files
app.py
CHANGED
|
@@ -176,6 +176,7 @@ with st.sidebar:
|
|
| 176 |
for q in samples:
|
| 177 |
if st.button(f"💬 {q}", key=f"s_{hash(q)}"):
|
| 178 |
st.session_state.current_question = q
|
|
|
|
| 179 |
|
| 180 |
if st.button("🗑️ Clear Chat"):
|
| 181 |
st.session_state.chat_history = []
|
|
|
|
| 176 |
for q in samples:
|
| 177 |
if st.button(f"💬 {q}", key=f"s_{hash(q)}"):
|
| 178 |
st.session_state.current_question = q
|
| 179 |
+
st.rerun()
|
| 180 |
|
| 181 |
if st.button("🗑️ Clear Chat"):
|
| 182 |
st.session_state.chat_history = []
|