diff --git a/app/api/fact_check.py b/app/api/fact_check.py index 7aa8ff1..950c0fd 100644 --- a/app/api/fact_check.py +++ b/app/api/fact_check.py @@ -167,7 +167,7 @@ async def process_fact_check(query: str) -> Union[FactCheckResponse, UnverifiedF verdict=VerdictEnum.UNVERIFIED, confidence=ConfidenceEnum.LOW, sources=[], - evidence=str(e), + evidence='No fact check results found.', explanation="Failed to contact Perplexity AI or parse its response.", additional_context="Possible API issue or malformed response." ) @@ -543,7 +543,7 @@ async def check_facts(request: FactCheckRequest): verdict=VerdictEnum.UNVERIFIED, confidence=ConfidenceEnum.LOW, sources=[], - evidence="Failed to process fact-checking request.", + evidence="No fact check results found", explanation="The system encountered errors while processing the fact checks.", additional_context="Please try again with different input or contact support if the issue persists." ) \ No newline at end of file