Spaces:
Runtime error
Runtime error
potential fix to return news object type 3
Browse files
crew.py
CHANGED
|
@@ -725,10 +725,7 @@ def run_crewai_news_patient(count: int = 5) -> dict:
|
|
| 725 |
if isinstance(result, dict):
|
| 726 |
return result
|
| 727 |
else:
|
| 728 |
-
|
| 729 |
-
return result.json_dict
|
| 730 |
-
except:
|
| 731 |
-
return {"status": "error", "message": "Failed to parse crew output", "raw": result, "raw.json_dict": result}
|
| 732 |
|
| 733 |
def run_crewai_news_doctor(count: int = 5) -> dict:
|
| 734 |
crew = Crew(
|
|
|
|
| 725 |
if isinstance(result, dict):
|
| 726 |
return result
|
| 727 |
else:
|
| 728 |
+
return {"status": "error", "message": "Failed to parse crew output", "raw": result, "raw.json_dict": result}
|
|
|
|
|
|
|
|
|
|
| 729 |
|
| 730 |
def run_crewai_news_doctor(count: int = 5) -> dict:
|
| 731 |
crew = Crew(
|