namann007 commited on
Commit
ed946d4
1 Parent(s): 2523724

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=generate_response, placeholder="Ask me anything...")
121
 
122
  # Button for generating response
123
- # if st.button("Generate Response"):
124
- # generate_response()
 
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()