Spaces:
Sleeping
Sleeping
Fixed & to and
Browse files- 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
|
| 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))
|