Spaces:
Build error
Build error
Update app.py
Browse files130 unmodified lines13113213313413513613716 unmodified lines154155156157130 unmodified lines# Update chat historychat_history = st.empty()for message in messages:role = message["role"]content = message["content"]if role == "user":16 unmodified lines)if __name__ == '__main__':app()130 unmodified lines13113213313413513613713813914014114214314414514614714814916 unmodified lines166167168169130 unmodified lines# Update chat historychat_history = st.empty()if 'chat_history' not in st.session_state:st.session_state['chat_history'] = []st.session_state['chat_history'].append({"role": "user","content": user_input})st.session_state['chat_history'].append({"role": "assistant","content": ai_response})for message in st.session_state['chat_history']:role = message["role"]content = message["content"]if role == "user":16 unmodified lines)if __name__ == '__main__':app()
app.py+14-2