Update app.py
Browse files
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
|