Spaces:
Runtime error
Runtime error
changed news crew kickoff logic
Browse files
crew.py
CHANGED
|
@@ -686,7 +686,12 @@ def run_crewai_news_patient(count: int = 5) -> dict:
|
|
| 686 |
)
|
| 687 |
task = Task(description=desc, expected_output=get_news_task_patient.expected_output, agent=patient_news)
|
| 688 |
|
| 689 |
-
crew = Crew(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 690 |
raw = str(crew.kickoff()).strip()
|
| 691 |
|
| 692 |
result = _parse_json_output(raw)
|
|
@@ -710,7 +715,12 @@ def run_crewai_news_doctor(count: int = 5) -> dict:
|
|
| 710 |
)
|
| 711 |
task = Task(description=desc, expected_output=get_news_task_doctor.expected_output, agent=doctor_news)
|
| 712 |
|
| 713 |
-
crew = Crew(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 714 |
raw = str(crew.kickoff()).strip()
|
| 715 |
|
| 716 |
result = _parse_json_output(raw)
|
|
|
|
| 686 |
)
|
| 687 |
task = Task(description=desc, expected_output=get_news_task_patient.expected_output, agent=patient_news)
|
| 688 |
|
| 689 |
+
crew = Crew(
|
| 690 |
+
agents=[patient_news],
|
| 691 |
+
tasks=[task],
|
| 692 |
+
verbose=True,
|
| 693 |
+
function_calling=False
|
| 694 |
+
)
|
| 695 |
raw = str(crew.kickoff()).strip()
|
| 696 |
|
| 697 |
result = _parse_json_output(raw)
|
|
|
|
| 715 |
)
|
| 716 |
task = Task(description=desc, expected_output=get_news_task_doctor.expected_output, agent=doctor_news)
|
| 717 |
|
| 718 |
+
crew = Crew(
|
| 719 |
+
agents=[doctor_news],
|
| 720 |
+
tasks=[task],
|
| 721 |
+
verbose=True,
|
| 722 |
+
function_calling=False
|
| 723 |
+
)
|
| 724 |
raw = str(crew.kickoff()).strip()
|
| 725 |
|
| 726 |
result = _parse_json_output(raw)
|