For comparison: choose a second document in the right panel, then ask “Compare the main ideas” or “Which document explains better?”
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 """