Spaces:
Sleeping
Sleeping
Fixing Bug
Browse files- chatbot.py +2 -1
chatbot.py
CHANGED
|
@@ -103,7 +103,8 @@ def render_chatbot(code: str, output: str, error: str):
|
|
| 103 |
# Get response
|
| 104 |
response = bot.analyze_code(code, output, error, user_input)
|
| 105 |
st.session_state.conversation.append((user_input, response))
|
| 106 |
-
|
|
|
|
| 107 |
# Generate summary and speech if conversation is long enough
|
| 108 |
if len(st.session_state.conversation) > 3:
|
| 109 |
with st.spinner("Generating conversation summary..."):
|
|
|
|
| 103 |
# Get response
|
| 104 |
response = bot.analyze_code(code, output, error, user_input)
|
| 105 |
st.session_state.conversation.append((user_input, response))
|
| 106 |
+
user_input = ""
|
| 107 |
+
|
| 108 |
# Generate summary and speech if conversation is long enough
|
| 109 |
if len(st.session_state.conversation) > 3:
|
| 110 |
with st.spinner("Generating conversation summary..."):
|