You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: st.session_state has no attribute "messages". Did you forget to initialize it? More info: https://docs.streamlit.io/develop/concepts/architecture/session-state#initialization
Traceback:
File "D:****.venv\chatbot\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "D:\project\chatbot\pages\5_🛢_chat_with_sql_db.py", line 94, in
obj.main()
File "D:\project\chatbot\utils.py", line 35, in execute
func(*args, kwargs)
File "D:\project\chatbot\pages\5_🛢_chat_with_sql_db.py", line 77, in main
st.session_state.messages.append({"role": "user", "content": user_query})
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:*.venv\chatbot\Lib\site-packages\streamlit\runtime\state\session_state_proxy.py", line 129, in getattr
raise AttributeError(_missing_attr_error_message(key))
The text was updated successfully, but these errors were encountered:
AttributeError: st.session_state has no attribute "messages". Did you forget to initialize it? More info: https://docs.streamlit.io/develop/concepts/architecture/session-state#initialization
Traceback:
File "D:****.venv\chatbot\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "D:\project\chatbot\pages\5_🛢_chat_with_sql_db.py", line 94, in
obj.main()
File "D:\project\chatbot\utils.py", line 35, in execute
func(*args, kwargs)
File "D:\project\chatbot\pages\5_🛢_chat_with_sql_db.py", line 77, in main
st.session_state.messages.append({"role": "user", "content": user_query})
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:*.venv\chatbot\Lib\site-packages\streamlit\runtime\state\session_state_proxy.py", line 129, in getattr
raise AttributeError(_missing_attr_error_message(key))
The text was updated successfully, but these errors were encountered: