KvrParaskevi
commited on
Commit
•
448ad63
1
Parent(s):
8f3d647
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ with st.container():
|
|
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
|
|
|
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
|