"""NEXUSMON — Community Public ritual space. Part of the Nexusmon sovereign AI organism. """ from __future__ import annotations import base64 import time from pathlib import Path import gradio as gr ORG_URL = "https://huggingface.co/Nexusmon" FRONT_DOOR_URL = "https://huggingface.co/spaces/Nexusmon/README" RANKING_URL = "https://huggingface.co/spaces/Nexusmon/hf-nexusmon-ranking" KNOWLEDGE_URL = "https://huggingface.co/spaces/Nexusmon/hf-nexusmon-knowledge" PRESENCE_BANNER = "nexusmon-presence.svg" def _presence_banner_src() -> str | None: candidates = [ Path(__file__).resolve().parent / "assets" / PRESENCE_BANNER, Path(__file__).resolve().parents[4] / "assets" / PRESENCE_BANNER, ] for candidate in candidates: if candidate.is_file(): encoded = base64.b64encode(candidate.read_bytes()).decode("ascii") return f"data:image/svg+xml;base64,{encoded}" return None def build() -> str: now = time.strftime("%Y-%m-%d %H:%M UTC", time.gmtime()) banner_src = _presence_banner_src() if banner_src: banner = f"""
Open membrane for the NEXUSMON community. Sovereign AI collective.
This surface is part of the NEXUSMON sovereign AI organism. Navigate via the links above.
Rendered {now}