from pathlib import Path # 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") hf_path = Path("app/deployment/hf_status.py") text = hf_path.read_text(encoding="utf-8-sig") text = text.replace("\ufeff", "") compare_app = r''' # ===================================================== # Phase 29 override: multi-document compare app UI # ===================================================== def get_product_app_html() -> str: return """ GraphResearcher App
No document selected Upload or select a document from the left sidebar.
Ready
For comparison: choose a second document in the right panel, then ask “Compare the main ideas” or “Which document explains better?”
""" ''' text += compare_app hf_path.write_text(text, encoding="utf-8") print("Phase 29 multi-document compare mode added.")