Spaces:
Build error
Build error
Update researchsimulation/InteractiveInterviewChatbot.py
Browse files
researchsimulation/InteractiveInterviewChatbot.py
CHANGED
|
@@ -164,7 +164,9 @@ def ask_interview_question(respondent_agents_dict, last_active_agent, question,
|
|
| 164 |
parsed_questions = {name: parsed_questions["General"] for name in agent_names}
|
| 165 |
elif "All" in parsed_questions:
|
| 166 |
logging.info("All case detected. Assigning question to all respondents.")
|
| 167 |
-
|
|
|
|
|
|
|
| 168 |
|
| 169 |
last_active_agent = list(parsed_questions.keys())
|
| 170 |
logging.info(f"Final parsed questions: {parsed_questions}")
|
|
|
|
| 164 |
parsed_questions = {name: parsed_questions["General"] for name in agent_names}
|
| 165 |
elif "All" in parsed_questions:
|
| 166 |
logging.info("All case detected. Assigning question to all respondents.")
|
| 167 |
+
validated_question = parsed_questions["All"]
|
| 168 |
+
parsed_questions = {name: validated_question for name in agent_names}
|
| 169 |
+
|
| 170 |
|
| 171 |
last_active_agent = list(parsed_questions.keys())
|
| 172 |
logging.info(f"Final parsed questions: {parsed_questions}")
|