Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -246,6 +246,8 @@ if st.session_state.submit_clicked and st.session_state.last_query:
|
|
246 |
st.session_state.last_answer = {"answer_with_rag": f"Error processing query: {str(e)}", "citations": ""}
|
247 |
# Reset debouncing after processing
|
248 |
st.session_state.is_processing = False
|
|
|
|
|
249 |
|
250 |
# Display the answer if available
|
251 |
if st.session_state.last_answer is not None:
|
|
|
246 |
st.session_state.last_answer = {"answer_with_rag": f"Error processing query: {str(e)}", "citations": ""}
|
247 |
# Reset debouncing after processing
|
248 |
st.session_state.is_processing = False
|
249 |
+
# Force a rerun so that buttons are re-rendered in enabled state and the answer is re-displayed
|
250 |
+
st.experimental_rerun()
|
251 |
|
252 |
# Display the answer if available
|
253 |
if st.session_state.last_answer is not None:
|