KvrParaskevi commited on
Commit
8f3d647
·
verified ·
1 Parent(s): 4608d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,9 +53,9 @@ with st.container():
53
  render_chat_history(st.session_state.chat_history)
54
 
55
  #Set up input text field
56
- input_text = st.chat_input(placeholder="Here you can chat with our hotel booking model.")
57
 
58
- if input_text:
59
  with st.chat_message("user"):
60
  st.markdown(input_text)
61
  st.session_state.chat_history.append({"role" : "user", "content" : input_text}) #append message to chat history
 
53
  render_chat_history(st.session_state.chat_history)
54
 
55
  #Set up input text field
56
+ #input_text = st.chat_input(placeholder="Here you can chat with our hotel booking model.")
57
 
58
+ if input_text != st.chat_input(placeholder="Here you can chat with our hotel booking model."):
59
  with st.chat_message("user"):
60
  st.markdown(input_text)
61
  st.session_state.chat_history.append({"role" : "user", "content" : input_text}) #append message to chat history