azettl commited on
Commit
3b740ff
Β·
verified Β·
1 Parent(s): 8683501

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -52
app.py CHANGED
@@ -26,22 +26,6 @@ MODERATOR_MODEL = os.getenv("MODERATOR_MODEL", "mistral")
26
  # Session-based storage for isolated discussions
27
  user_sessions: Dict[str, Dict] = {}
28
 
29
- # PROFESSIONAL: Compelling decision-making questions that create rigorous analysis
30
- PROFESSIONAL_DECISION_QUESTIONS = [
31
- "Should our startup pivot to AI-first product development?",
32
- "Microservices vs monolith architecture for our scaling platform?",
33
- "What's the most promising approach to carbon capture technology?",
34
- "Should we prioritize geoengineering research over emissions reduction?",
35
- "Is nuclear energy essential for meeting climate goals?",
36
- "Should AI development be paused until alignment is solved?",
37
- "Will remote work fundamentally change innovation culture?",
38
- "Should gene editing be used for human enhancement?",
39
- "Is cryptocurrency adoption inevitable for global finance?",
40
- "Should social media platforms be regulated as public utilities?",
41
- "Will lab-grown meat replace traditional agriculture?",
42
- "Should we colonize Mars or focus resources on Earth?"
43
- ]
44
-
45
  # NATIVE FUNCTION CALLING: Define search functions for both Mistral and SambaNova
46
  SEARCH_FUNCTIONS = [
47
  {
@@ -1301,8 +1285,8 @@ with gr.Blocks(title="🎭 Consilium: Visual AI Consensus Platform", theme=gr.th
1301
 
1302
  * Visual roundtable of the AI models, including speech bubbles to see the discussion in real time.
1303
  * MCP mode enabled to also use it directly in, for example, Claude Desktop (without the visual table).
1304
- * Includes Mistral (mistral-large-latest) via their API and the Models DeepSeek-R1, Meta-Llama-3.1-8B-Instruct and QwQ-32B via the SambaNova API.
1305
- * Research Agent to search via DuckDuckGo or Wikipedia, added as a tool for the models from Mistral and Llama.
1306
  * Assign different roles to the models, the protocol they should follow, and decide the communication strategy.
1307
  * Pick one model as the lead analyst (had the best results when picking Mistral).
1308
  * Configure the amount of discussion rounds.
@@ -1354,7 +1338,8 @@ with gr.Blocks(title="🎭 Consilium: Visual AI Consensus Platform", theme=gr.th
1354
  moderator_model = gr.Dropdown(
1355
  choices=["mistral", "sambanova_deepseek", "sambanova_llama", "sambanova_qwq"],
1356
  value="mistral",
1357
- label="πŸ‘¨β€βš–οΈ Lead Analyst"
 
1358
  )
1359
 
1360
  rounds_input = gr.Slider(
@@ -1534,40 +1519,8 @@ with gr.Blocks(title="🎭 Consilium: Visual AI Consensus Platform", theme=gr.th
1534
  - **Secure Communication**: All API calls use HTTPS encryption
1535
  """)
1536
 
1537
- with gr.Tab("πŸ“š Usage Guide"):
1538
  gr.Markdown("""
1539
- ## 🎯 How to Get Expert AI Analysis with Live Research
1540
-
1541
- ### πŸ† **Professional Decision Questions**
1542
-
1543
- #### **πŸ’Ό Business & Strategy**
1544
- - "Should our startup pivot to AI-first product development?"
1545
- - "Microservices vs monolith architecture for our scaling platform?"
1546
- - "Should we prioritize in-house development or partnerships for AI capabilities?"
1547
- - "What's the optimal pricing strategy for our SaaS product expansion?"
1548
- - "Should we target enterprise or SMB market segments first?"
1549
-
1550
- #### **πŸ”¬ Technology & Research**
1551
- - "What's the most promising approach to carbon capture technology?"
1552
- - "Should we bet on quantum computing for cryptography applications?"
1553
- - "Is edge computing essential for our IoT deployment strategy?"
1554
- - "React vs Vue vs Angular for our large-scale web application?"
1555
- - "Should we adopt GraphQL or stick with REST APIs?"
1556
-
1557
- #### **🌍 Policy & Society**
1558
- - "Should we prioritize geoengineering research over emissions reduction?"
1559
- - "Is nuclear energy essential for meeting climate goals?"
1560
- - "Should AI development be paused until alignment is solved?"
1561
- - "How should we regulate social media algorithm transparency?"
1562
- - "Should gene editing be allowed for human enhancement?"
1563
-
1564
- #### **πŸš€ Innovation & Future**
1565
- - "Will remote work fundamentally change innovation culture?"
1566
- - "Should we colonize Mars or focus resources on Earth?"
1567
- - "Is cryptocurrency adoption inevitable for global finance?"
1568
- - "Will lab-grown meat replace traditional agriculture?"
1569
- - "Should we trust AI with medical decision-making?"
1570
-
1571
  ## πŸŽ“ **Expert Role Assignments**
1572
 
1573
  #### **βš–οΈ Balanced (Recommended for Most Decisions)**
 
26
  # Session-based storage for isolated discussions
27
  user_sessions: Dict[str, Dict] = {}
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  # NATIVE FUNCTION CALLING: Define search functions for both Mistral and SambaNova
30
  SEARCH_FUNCTIONS = [
31
  {
 
1285
 
1286
  * Visual roundtable of the AI models, including speech bubbles to see the discussion in real time.
1287
  * MCP mode enabled to also use it directly in, for example, Claude Desktop (without the visual table).
1288
+ * Includes Mistral (**mistral-large-latest**) via their API and the Models **DeepSeek-R1**, **Meta-Llama-3.1-8B-Instruct** and **QwQ-32B** via the SambaNova API.
1289
+ * Research Agent to search via **DuckDuckGo** or **Wikipedia**, added as a tool for the models from Mistral and Llama.
1290
  * Assign different roles to the models, the protocol they should follow, and decide the communication strategy.
1291
  * Pick one model as the lead analyst (had the best results when picking Mistral).
1292
  * Configure the amount of discussion rounds.
 
1338
  moderator_model = gr.Dropdown(
1339
  choices=["mistral", "sambanova_deepseek", "sambanova_llama", "sambanova_qwq"],
1340
  value="mistral",
1341
+ label="πŸ‘¨β€βš–οΈ Lead Analyst",
1342
+ info="Mistral works best as Lead"
1343
  )
1344
 
1345
  rounds_input = gr.Slider(
 
1519
  - **Secure Communication**: All API calls use HTTPS encryption
1520
  """)
1521
 
1522
+ with gr.Tab("πŸ“š Documentation"):
1523
  gr.Markdown("""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1524
  ## πŸŽ“ **Expert Role Assignments**
1525
 
1526
  #### **βš–οΈ Balanced (Recommended for Most Decisions)**