Anshini commited on
Commit
d845172
·
verified ·
1 Parent(s): 59b9d1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -155,12 +155,12 @@ elif st.session_state.page == "sql":
155
 
156
  # Show chat history
157
  st.markdown("### 📜 Chat History")
158
- for msg in st.session_state.messages[1:]: # Skip SystemMessage
159
- if isinstance(msg, HumanMessage):
160
- st.markdown(f"**You:** {msg.content}")
161
- elif isinstance(msg, AIMessage):
162
- st.markdown(f"**Bot:** {msg.content}")
163
- st.button("⬅️ Back to Home", on_click=lambda: switch_page("home"))
164
  # Load SQL chatbot here
165
 
166
  elif st.session_state.page == "powerbi":
 
155
 
156
  # Show chat history
157
  st.markdown("### 📜 Chat History")
158
+ for msg in st.session_state.messages[1:]: # Skip SystemMessage
159
+ if isinstance(msg, HumanMessage):
160
+ st.markdown(f"**You:** {msg.content}")
161
+ elif isinstance(msg, AIMessage):
162
+ st.markdown(f"**Bot:** {msg.content}")
163
+ st.button("⬅️ Back to Home", on_click=lambda: switch_page("home"))
164
  # Load SQL chatbot here
165
 
166
  elif st.session_state.page == "powerbi":