jjz5463 commited on
Commit
3a8cc44
1 Parent(s): ecf6658

bug fix: didn't count user step

Browse files
Files changed (1) hide show
  1. chatbot_simulator.py +1 -1
chatbot_simulator.py CHANGED
@@ -121,7 +121,7 @@ Rules:
121
  # User provides input
122
  self.actions.append(user_input + f'on {self.user_state["current_page"]} page')
123
  self.conversation.append({"role": "user", "content": user_input})
124
-
125
  # Update user state using GPT's response
126
  update_prompt = f"""
127
  If user takes action '{user_input}' on {self.user_state['current_page']} page, which page will they move to?
 
121
  # User provides input
122
  self.actions.append(user_input + f'on {self.user_state["current_page"]} page')
123
  self.conversation.append({"role": "user", "content": user_input})
124
+ self.prompt_count += 1
125
  # Update user state using GPT's response
126
  update_prompt = f"""
127
  If user takes action '{user_input}' on {self.user_state['current_page']} page, which page will they move to?