wendywu commited on
Commit
af71ddd
·
1 Parent(s): 9c315e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ if user_input := st.chat_input("Say something"):
60
  sentiment_analysis = f" (sentiment:{sentiment},score:{prob})"
61
 
62
  # add user input to history
63
- st.session_state.messages.append({"role": "user", "content": user_input + sentiment_analysis})
64
 
65
  # add assistant input to history
66
  st.session_state.messages.append({"role": "assistant", "content": assistant_input})
 
60
  sentiment_analysis = f" (sentiment:{sentiment},score:{prob})"
61
 
62
  # add user input to history
63
+ st.session_state.messages.append({"role": "user", "content": user_input})
64
 
65
  # add assistant input to history
66
  st.session_state.messages.append({"role": "assistant", "content": assistant_input})