vsj0702 commited on
Commit
8a9b669
·
verified ·
1 Parent(s): 9aae20a

Fixing Bug

Browse files
Files changed (1) hide show
  1. 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..."):