Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 14 |
return history, ""
|
| 15 |
|
| 16 |
# Map friendly names
|
| 17 |
role_map = {
|
| 18 |
"Auto (Router)": "Auto",
|
| 19 |
-
"β‘ ASM (
|
| 20 |
-
"π¬ SFE (
|
| 21 |
-
"π¨ 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
|
| 43 |
-
gr.Markdown("# βοΈ AXON:
|
| 44 |
-
gr.Markdown("*> Pipeline: Gemini (
|
| 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 (
|
| 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 |
)
|