Spaces:
Running
Running
bug fix: didn't count user step
Browse files- 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?
|