opinder2906 commited on
Commit
cd2aa9a
·
verified ·
1 Parent(s): cba1c32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -78,10 +78,6 @@ for msg in st.session_state.history:
78
  # Single text input for conversation
79
  chat = st.text_input("You:", key="chat_input")
80
  if chat:
81
- # record user message
82
  st.session_state.history.append({"role": "user", "content": chat})
83
- # get bot response
84
  reply = get_advice(chat)
85
  st.session_state.history.append({"role": "assistant", "content": reply})
86
- # clear input
87
- st.session_state.chat_input = ""
 
78
  # Single text input for conversation
79
  chat = st.text_input("You:", key="chat_input")
80
  if chat:
 
81
  st.session_state.history.append({"role": "user", "content": chat})
 
82
  reply = get_advice(chat)
83
  st.session_state.history.append({"role": "assistant", "content": reply})