from pathlib import Path import re # Clean BOM for path in Path("app").rglob("*.py"): text = path.read_text(encoding="utf-8-sig") text = text.replace("\ufeff", "") path.write_text(text, encoding="utf-8") print("BOM cleanup completed.") hf_path = Path("app/deployment/hf_status.py") text = hf_path.read_text(encoding="utf-8-sig") text = text.replace("\ufeff", "") new_ui = r''' def get_home_html() -> str: return """
Upload a research paper, report, PDF, or notes and ask questions naturally. GraphResearcher retrieves evidence, builds an entity-relation graph, generates grounded answers, and shows citations without forcing users to handle technical document IDs.
Upload, select, chat with, and delete documents from a normal user interface.
Combines hybrid retrieval with graph context, graph-guided chunks, and fusion evaluation.
Includes app UI, GraphRAG console, API docs, health checks, and deployment status.