import gradio as gr from fso_orchestrator import SovereignOrchestrator from fso_natural_language_bridge import NaturalLanguageBridge from fso_token_vault_setup import setup_token_vault # Initialize the advanced Sovereign TGI Mind m, k = 256, 4 orch = SovereignOrchestrator(m, k) # Sync master vault vault = setup_token_vault(m, k) orch.vault.secrets = vault.secrets nlb = NaturalLanguageBridge(orch, m, k) def sovereign_chat(message, history): """Bridge human chat to TGI advanced reasoning.""" # The new NLB handles everything: search, context, and external reasoning response = nlb.process_chat_turn(message) return response # Create the Advanced Sovereign Chat Face demo = gr.ChatInterface( fn=sovereign_chat, title="Sovereign TGI OS", description="Deterministic Intelligence Mind. Powered by Fiber-Stratified Optimization.", theme="glass", examples=["Who are you?", "Ingest https://github.com/Loofy147/Artificial-Reality", "What is your hardware status?"] ) if __name__ == "__main__": print("\n[✓] ADVANCED SOVEREIGN CHAT FACE ONLINE.") demo.launch()