st-chat icon indicating copy to clipboard operation
st-chat copied to clipboard

Any suggestions on avoiding the error when I choose STOP?

Open shawngiese opened this issue 1 year ago • 0 comments

Currently, choosing stop while the AI is generating a response throws an error similar to:

AttributeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/appuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/app/st-chat/examples/chatbot.py", line 42, in <module>
    st.session_state.past.append(user_input)
File "/home/appuser/venv/lib/python3.8/site-packages/streamlit/runtime/state/session_state_proxy.py", line 121, in __getattr__
    raise AttributeError(_missing_attr_error_message(key))

shawngiese avatar May 21 '23 13:05 shawngiese