We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad6351 commit 74dbb65Copy full SHA for 74dbb65
fact_checker_cli/fact_checker.py
100644
100755
@@ -15,6 +15,8 @@
15
16
import requests
17
from pydantic import BaseModel, Field
18
+from newspaper import Article, ArticleException
19
+from requests.exceptions import RequestException
20
21
22
class Claim(BaseModel):
@@ -92,6 +94,8 @@ def _load_system_prompt(self, prompt_file: str) -> str:
92
94
try:
93
95
with open(prompt_file, 'r', encoding='utf-8') as f:
96
return f.read().strip()
97
+ except FileNotFoundError:
98
+ print(f"Warning: Prompt file not found at {prompt_file}", file=sys.stderr)
99
except Exception as e:
100
print(f"Warning: Could not load system prompt from {prompt_file}: {e}", file=sys.stderr)
101
print("Using default system prompt.", file=sys.stderr)
0 commit comments