diff --git a/app.py b/app.py index ac1322d..a8fc6d8 100644 --- a/app.py +++ b/app.py @@ -610,15 +610,15 @@ def main(): ) }) - response = get_chat_response(messages) - st.markdown(response) + response = get_chat_response(messages) + st.markdown(response) - st.session_state.messages.append({ - "role": "assistant", - "content": response - }) - except Exception as e: - st.error(f"Error generating response: {str(e)}") + st.session_state.messages.append({ + "role": "assistant", + "content": response + }) + except Exception as e: + st.error(f"Error generating response: {str(e)}") # Export chat history if st.button("Export Chat History"):