nat232 commited on
Commit
dbfe10d
·
verified ·
1 Parent(s): d8affbd

Update researchsimulation/InteractiveInterviewChatbot.py

Browse files
researchsimulation/InteractiveInterviewChatbot.py CHANGED
@@ -205,11 +205,11 @@ def ask_interview_question(respondent_agents_dict, last_active_agent, question,
205
  parsed_questions = validated_questions
206
  logging.info(f"Validated questions: {parsed_questions}")
207
 
208
- #if len(parsed_questions) > 1:
209
- # logging.warning("More than one respondent specified. Exiting function.")
210
- # return "**PreData Moderator**: Please ask each respondent one question at a time."
211
- #else:
212
- print(f"Parsed questions are: {parsed_questions}")
213
 
214
  if "General" in parsed_questions:
215
  if "General" in parsed_questions:
 
205
  parsed_questions = validated_questions
206
  logging.info(f"Validated questions: {parsed_questions}")
207
 
208
+ if len(parsed_questions) > 1:
209
+ logging.warning("More than one respondent specified. Exiting function.")
210
+ return "**PreData Moderator**: Please ask each respondent one question at a time."
211
+ else:
212
+ print(f"Parsed questions are: {parsed_questions}")
213
 
214
  if "General" in parsed_questions:
215
  if "General" in parsed_questions: