Production ready: mobile responsive UI, ChromaDB persistence, Excel export, and Filing Deadlines

This commit is contained in:
Atharv1705
2026-09-05 17:42:08 +05:30
parent e0f6167d14
commit 46a340dc74
18 changed files with 899 additions and 40 deletions
+2 -2
View File
@@ -435,7 +435,7 @@ _SUMMARY_SYSTEM_PROMPT = (
)
def _extract_text_from_file(file_path: str) -> str:
def extract_raw_text(file_path: str) -> str:
"""Extract raw text from a PDF or image file. Returns empty string on failure."""
try:
if file_path.lower().endswith(".pdf"):
@@ -492,7 +492,7 @@ def summarize_admin_document(file_path: str, doc_label: str) -> str | None:
logger.warning("[Summary] OPENROUTER_API_KEY not set — skipping summary")
return None
text = _extract_text_from_file(file_path)
text = extract_raw_text(file_path)
if not text:
logger.info(f"[Summary] No extractable text from {file_path} — skipping")