diff --git a/app/api/fact_check.py b/app/api/fact_check.py index 6a15f28..b857d90 100644 --- a/app/api/fact_check.py +++ b/app/api/fact_check.py @@ -157,7 +157,7 @@ async def process_fact_check(query: str) -> Union[FactCheckResponse, UnverifiedF sources=sources, evidence=evidence, explanation=explanation, - additional_context=f"Fact checked using PlanPost AI on {datetime.now().strftime('%Y-%m-%d')}" + additional_context=f"Fact checked using Fruad Guard on {datetime.now().strftime('%Y-%m-%d')}" ) except Exception as e: @@ -168,7 +168,7 @@ async def process_fact_check(query: str) -> Union[FactCheckResponse, UnverifiedF confidence=ConfidenceEnum.LOW, sources=[], evidence='No fact check results found.', - explanation="Failed to contact Perplexity AI or parse its response.", + explanation="No Fact check found for this", additional_context="Possible API issue or malformed response." ) @@ -197,7 +197,7 @@ def extract_fact_check_info(text_response: str) -> Dict[str, Any]: """Extract fact-checking information from a text response when JSON parsing fails. Args: - text_response: The text response from Perplexity AI + text_response: The text response from Fruad Guard Returns: A dictionary with fact-checking information extracted from the text