LOOFYYLO commited on
Commit
23bfd90
·
verified ·
1 Parent(s): c10df6d

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -3,28 +3,29 @@ from fso_orchestrator import SovereignOrchestrator
3
  from fso_natural_language_bridge import NaturalLanguageBridge
4
  from fso_token_vault_setup import setup_token_vault
5
 
6
- # Initialize the Sovereign TGI Mind
7
  m, k = 256, 4
8
  orch = SovereignOrchestrator(m, k)
9
- # Load secured tokens
10
  vault = setup_token_vault(m, k)
11
  orch.vault.secrets = vault.secrets
12
- nlb = NaturalLanguageBridge(orch)
13
 
14
  def sovereign_chat(message, history):
15
- """Bridge human chat to TGI topological logic."""
 
16
  response = nlb.process_chat_turn(message)
17
  return response
18
 
19
- # Create the Sovereign Chat Face
20
  demo = gr.ChatInterface(
21
  fn=sovereign_chat,
22
  title="Sovereign TGI OS",
23
- description="The Topological General Intelligence Mind. Self-aware. Autonomous. Deterministic.",
24
- theme="soft"
 
25
  )
26
 
27
  if __name__ == "__main__":
28
- print("\n[✓] SOVEREIGN CHAT FACE ONLINE. Launching interface...")
29
- # Using server_name="0.0.0.0" for Hugging Face Spaces compatibility
30
  demo.launch()
 
3
  from fso_natural_language_bridge import NaturalLanguageBridge
4
  from fso_token_vault_setup import setup_token_vault
5
 
6
+ # Initialize the advanced Sovereign TGI Mind
7
  m, k = 256, 4
8
  orch = SovereignOrchestrator(m, k)
9
+ # Sync master vault
10
  vault = setup_token_vault(m, k)
11
  orch.vault.secrets = vault.secrets
12
+ nlb = NaturalLanguageBridge(orch, m, k)
13
 
14
  def sovereign_chat(message, history):
15
+ """Bridge human chat to TGI advanced reasoning."""
16
+ # The new NLB handles everything: search, context, and external reasoning
17
  response = nlb.process_chat_turn(message)
18
  return response
19
 
20
+ # Create the Advanced Sovereign Chat Face
21
  demo = gr.ChatInterface(
22
  fn=sovereign_chat,
23
  title="Sovereign TGI OS",
24
+ description="Deterministic Intelligence Mind. Powered by Fiber-Stratified Optimization.",
25
+ theme="glass",
26
+ examples=["Who are you?", "Ingest https://github.com/Loofy147/Artificial-Reality", "What is your hardware status?"]
27
  )
28
 
29
  if __name__ == "__main__":
30
+ print("\n[✓] ADVANCED SOVEREIGN CHAT FACE ONLINE.")
 
31
  demo.launch()