Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -117,8 +117,8 @@ if st.session_state.chat_history:
|
|
117 |
st.markdown(f'<div class="chat-box {class_name}">{message}</div>', unsafe_allow_html=True)
|
118 |
|
119 |
# Input field for user message
|
120 |
-
st.text_input("How may I assist you today?", key="user_input", on_change=
|
121 |
|
122 |
# Button for generating response
|
123 |
-
|
124 |
-
|
|
|
117 |
st.markdown(f'<div class="chat-box {class_name}">{message}</div>', unsafe_allow_html=True)
|
118 |
|
119 |
# Input field for user message
|
120 |
+
st.text_input("How may I assist you today?", key="user_input", on_change=handle_chat, placeholder="Ask me anything...")
|
121 |
|
122 |
# Button for generating response
|
123 |
+
if st.button("Generate Response"):
|
124 |
+
generate_response()
|