vsj0702 commited on
Commit
2a9d572
·
verified ·
1 Parent(s): 222b009

Fixed & to and

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -103,7 +103,7 @@ def render_chatbot(code: str, output: str, error: str):
103
  with col2:
104
  send_clicked = st.button("Send") # Button to send the message
105
 
106
- if user_input & send_clicked:
107
  # Get response
108
  response = bot.analyze_code(code, output, error, user_input)
109
  st.session_state.conversation.append((user_input, response))
 
103
  with col2:
104
  send_clicked = st.button("Send") # Button to send the message
105
 
106
+ if user_input and send_clicked:
107
  # Get response
108
  response = bot.analyze_code(code, output, error, user_input)
109
  st.session_state.conversation.append((user_input, response))