Spaces:
Build error
Build error
Update researchsimulation/InteractiveInterviewChatbot.py
Browse files
researchsimulation/InteractiveInterviewChatbot.py
CHANGED
|
@@ -262,11 +262,10 @@ def generate_generic_answer(agent_name, agent_question, respondent_agent):
|
|
| 262 |
logging.debug(f"[generate_generic_answer] Task description preview: {task_description[:300]}...")
|
| 263 |
|
| 264 |
task = Task(description=task_description, expected_output="A neutral, personal response to the question.", agent=respondent_agent)
|
| 265 |
-
Crew(agents=[respondent_agent], tasks=[task], process=Process.sequential)
|
| 266 |
|
| 267 |
logging.info("[generate_generic_answer] Starting Crew kickoff")
|
| 268 |
kickoff_start = time.time()
|
| 269 |
-
|
| 270 |
kickoff_duration = time.time() - kickoff_start
|
| 271 |
logging.info(f"[generate_generic_answer] Crew kickoff completed in {kickoff_duration:.2f} seconds")
|
| 272 |
|
|
@@ -355,11 +354,10 @@ def tailor_answer_to_profile(agent_name, generic_answer, agent_question, user_pr
|
|
| 355 |
logging.info("[tailor_answer_to_profile] Initialising Task and Crew objects")
|
| 356 |
|
| 357 |
task = Task(description=task_description, expected_output="A styled, culturally authentic, first-person response.", agent=respondent_agent)
|
| 358 |
-
Crew(agents=[respondent_agent], tasks=[task], process=Process.sequential)
|
| 359 |
|
| 360 |
logging.info("[tailor_answer_to_profile] Starting Crew kickoff")
|
| 361 |
kickoff_start = time.time()
|
| 362 |
-
|
| 363 |
kickoff_duration = time.time() - kickoff_start
|
| 364 |
logging.info(f"[tailor_answer_to_profile] Crew kickoff completed in {kickoff_duration:.2f} seconds")
|
| 365 |
|
|
|
|
| 262 |
logging.debug(f"[generate_generic_answer] Task description preview: {task_description[:300]}...")
|
| 263 |
|
| 264 |
task = Task(description=task_description, expected_output="A neutral, personal response to the question.", agent=respondent_agent)
|
|
|
|
| 265 |
|
| 266 |
logging.info("[generate_generic_answer] Starting Crew kickoff")
|
| 267 |
kickoff_start = time.time()
|
| 268 |
+
Crew(agents=[respondent_agent], tasks=[task], process=Process.sequential).kickoff()
|
| 269 |
kickoff_duration = time.time() - kickoff_start
|
| 270 |
logging.info(f"[generate_generic_answer] Crew kickoff completed in {kickoff_duration:.2f} seconds")
|
| 271 |
|
|
|
|
| 354 |
logging.info("[tailor_answer_to_profile] Initialising Task and Crew objects")
|
| 355 |
|
| 356 |
task = Task(description=task_description, expected_output="A styled, culturally authentic, first-person response.", agent=respondent_agent)
|
|
|
|
| 357 |
|
| 358 |
logging.info("[tailor_answer_to_profile] Starting Crew kickoff")
|
| 359 |
kickoff_start = time.time()
|
| 360 |
+
Crew(agents=[respondent_agent], tasks=[task], process=Process.sequential).kickoff()
|
| 361 |
kickoff_duration = time.time() - kickoff_start
|
| 362 |
logging.info(f"[tailor_answer_to_profile] Crew kickoff completed in {kickoff_duration:.2f} seconds")
|
| 363 |
|