From dcf83bbf819c5721936ff20a9075dbb1ece15ac6 Mon Sep 17 00:00:00 2001 From: smfahim25 Date: Thu, 10 Apr 2025 10:44:05 +0600 Subject: [PATCH] update --- app/api/fact_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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