Spaces:
Runtime error
Runtime error
Update app.py
Browse files33 unmodified lines3435363738394041424317 unmodified lines6162636465666733 unmodified linesfor message in st.session_state.chat_history:if isinstance(message, AIMessage):with st.chat_message("AI"):st.markdown(message.content)elif isinstance(message, HumanMessage):with st.chat_message("Human"):st.markdown(message.content)# User inputuser_query = st.chat_input("Type your message here...")17 unmodified lineselse:# Display bot's response if JSON extraction failswith st.chat_message("AI"):st.write(response)# Append messages to chat historyst.session_state.chat_history.append(HumanMessage(content=user_query))33 unmodified lines3435363738394041424317 unmodified lines6162636465666733 unmodified linesfor message in st.session_state.chat_history:if isinstance(message, AIMessage):with st.chat_message("AI"):st.code(message.content)elif isinstance(message, HumanMessage):with st.chat_message("Human"):st.code(message.content)# User inputuser_query = st.chat_input("Type your message here...")17 unmodified lineselse:# Display bot's response if JSON extraction failswith st.chat_message("AI"):st.code(response)# Append messages to chat historyst.session_state.chat_history.append(HumanMessage(content=user_query))
app.py+3-3