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", "") append_code = r''' # ===================================================== # Phase 34 override: professional answer rendering # ===================================================== try: _phase34_previous_get_product_app_html = get_product_app_html except NameError: _phase34_previous_get_product_app_html = None def get_product_app_html() -> str: if _phase34_previous_get_product_app_html is None: return "
App UI is unavailable.
" html = _phase34_previous_get_product_app_html() css = """ """ if "answer-card" not in html: html = html.replace("", css + "\n") js = """ """ if "Phase 34:" not in html: html = html.replace("