SuhasGholkar commited on
Commit
2047459
·
verified ·
1 Parent(s): 6aa550e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -4604,15 +4604,11 @@ with tab_chat:
4604
  st.session_state['__clear_input__'] = True
4605
  st.rerun()
4606
  else:
4607
- logger.info(">>in Else Loop<<")
4608
- _out = st.session_state.get("last_chat_out")
4609
- if _out:
4610
- render_chat_output(_out) # <— re-render last answer
4611
- if st.session_state.get("last_chat_id"):
4612
- render_feedback_controls(st.session_state["last_chat_id"], key_ns="main")
4613
- else:
4614
- st.info("Ask a question to see results.")
4615
- # Ensure transcript has latest turn appended (once per turn)
4616
  _last_user = st.session_state.get('last_query_text')
4617
  if _out is not None and _last_user:
4618
  _t = st.session_state.setdefault('transcript', [])
 
4604
  st.session_state['__clear_input__'] = True
4605
  st.rerun()
4606
  else:
4607
+ logger.info(">>in Else Loop<<")
4608
+ # Do not re-render here; the top-of-chat non-click block handles replay.
4609
+ if st.session_state.get("last_chat_out") is None:
4610
+ st.info("Ask a question to see results.")
4611
+ # Ensure transcript has latest turn appended (once per turn)
 
 
 
 
4612
  _last_user = st.session_state.get('last_query_text')
4613
  if _out is not None and _last_user:
4614
  _t = st.session_state.setdefault('transcript', [])