def generate_flow_html(active_phase="idle"): """ Generates animated SVG for the MVM² Architecture Flow. Phases: 'idle', 'enhance', 'ocr', 'reasoning', 'verification', 'consensus', 'success' """ # Define colors bg_color = "#1e293b" accent = "#6366f1" success = "#10b981" text = "#94a3b8" # Pulse animation logic def get_pulse(phase): return 'active-pulse' if active_phase == phase else '' def get_node_style(phase): if active_phase == 'success': return 'stroke: #10b981; filter: drop-shadow(0 0 8px #10b981);' if active_phase == phase: return f'stroke: {accent}; filter: drop-shadow(0 0 8px {accent});' return 'stroke: rgba(255,255,255,0.1);' html = f"""
ENHANCE OCR REASONING SYMPY CORE CONSENSUS
Current Stage: {active_phase}
""" return html