AIencoder commited on
Commit
4654bb9
Β·
verified Β·
1 Parent(s): 3d89e37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -10,15 +10,15 @@ except Exception as e:
10
 
11
  def chat_logic(message, history, mode_selection):
12
  if not chimera:
13
- history.append({"role": "assistant", "content": "❌ Error: API Keys missing. Check Settings -> Secrets."})
14
  return history, ""
15
 
16
  # Map friendly names
17
  role_map = {
18
  "Auto (Router)": "Auto",
19
- "⚑ ASM (Binary Code)": "ASM",
20
- "πŸ”¬ SFE (Scientist)": "SFE",
21
- "🎨 CSM (Writer)": "CSM"
22
  }
23
  selected_role = role_map.get(mode_selection, "Auto")
24
 
@@ -39,16 +39,16 @@ body {background-color: #0b0f19; color: #c9d1d9;}
39
  #chatbot {height: 600px; border: 1px solid #30363d; background-color: #0d1117;}
40
  """
41
 
42
- with gr.Blocks(css=custom_css, title="Axon Binary") as demo:
43
- gr.Markdown("# βš”οΈ AXON: BINARY STAR")
44
- gr.Markdown("*> Pipeline: Gemini (Draft) βž” Groq (Refine)*")
45
 
46
  with gr.Row():
47
  with gr.Column(scale=4):
48
  chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
49
  with gr.Column(scale=1):
50
  mode = gr.Dropdown(
51
- choices=["Auto (Router)", "⚑ ASM (Binary Code)", "πŸ”¬ SFE (Scientist)", "🎨 CSM (Writer)"],
52
  value="Auto (Router)",
53
  label="Persona Mode"
54
  )
 
10
 
11
  def chat_logic(message, history, mode_selection):
12
  if not chimera:
13
+ history.append({"role": "assistant", "content": "❌ Error: API Keys missing."})
14
  return history, ""
15
 
16
  # Map friendly names
17
  role_map = {
18
  "Auto (Router)": "Auto",
19
+ "⚑ ASM (Qwen + Llama)": "ASM",
20
+ "πŸ”¬ SFE (Data/Science)": "SFE",
21
+ "🎨 CSM (Story/Creative)": "CSM"
22
  }
23
  selected_role = role_map.get(mode_selection, "Auto")
24
 
 
39
  #chatbot {height: 600px; border: 1px solid #30363d; background-color: #0d1117;}
40
  """
41
 
42
+ with gr.Blocks(css=custom_css, title="Axon Trinity") as demo:
43
+ gr.Markdown("# βš”οΈ AXON: QWEN TRINITY")
44
+ gr.Markdown("*> Pipeline: Gemini (Plan) βž” Qwen 2.5 (Code) βž” Llama 3.3 (Refine)*")
45
 
46
  with gr.Row():
47
  with gr.Column(scale=4):
48
  chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
49
  with gr.Column(scale=1):
50
  mode = gr.Dropdown(
51
+ choices=["Auto (Router)", "⚑ ASM (Qwen + Llama)", "πŸ”¬ SFE (Data/Science)", "🎨 CSM (Story/Creative)"],
52
  value="Auto (Router)",
53
  label="Persona Mode"
54
  )