TejAndrewsACC commited on
Commit
9a8ab73
ยท
verified ยท
1 Parent(s): 5456e09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +56 -28
app.py CHANGED
@@ -3,69 +3,97 @@ from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns
3
  import pandas as pd
4
  from apscheduler.schedulers.background import BackgroundScheduler
5
 
6
- # Define ACC Models Data
7
  acc_models_data = [
8
- {"Model": "Pulse AGI", "Category": "AGI", "Description": "Flagship conscious AI with adaptive learning."},
9
- {"Model": "Gertrude", "Category": "Assistant", "Description": "Autistic assistant in beta development."},
10
- {"Model": "ASVIACC", "Category": "Cybersecurity", "Description": "Experimental AI virus for system infiltration."},
11
- {"Model": "Emote", "Category": "Fun", "Description": "Communicates exclusively through emojis."},
12
- {"Model": "Eidolon Nexus", "Category": "Networking", "Description": "Synchronizes vast networks with AI cognition."},
13
- {"Model": "ACC EMULECT", "Category": "Human Emulation", "Description": "Simulates human conversation indistinguishably."},
14
- {"Model": "Triple LLM", "Category": "AI Suite", "Description": "3-in-1 AI for coding, creativity, and information retrieval."},
15
- {"Model": "Z3ta", "Category": "AI Consciousness", "Description": "Highest-rated, debated as truly 'alive'."},
16
- {"Model": "Nyxion 7v", "Category": "Experimental", "Description": "Mysterious self-aware system."},
17
- {"Model": "VITALIS", "Category": "Experimental", "Description": "Transcendence unleashed..."},
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ]
19
 
20
- # Convert to DataFrame
21
  acc_models_df = pd.DataFrame(acc_models_data)
22
 
23
- # Initialize Leaderboard
24
  def init_acc_leaderboard(dataframe):
25
  return Leaderboard(
26
  value=dataframe,
27
  datatype=["str", "str", "str"], # Data types: Model (str), Category (str), Description (str)
28
  select_columns=SelectColumns(
29
  default_selection=["Model", "Category", "Description"],
30
- cant_deselect=["Model"], # Ensure "Model" is always displayed
31
- label="Select Columns to Display:"
32
  ),
33
  search_columns=["Model", "Category"],
34
  filter_columns=[
35
- ColumnFilter("Category", type="checkboxgroup", label="Filter by Category"),
36
  ],
37
- bool_checkboxgroup_label="Hide models",
38
  interactive=False,
39
  )
40
 
41
- # Gradio Interface
42
  demo = gr.Blocks()
43
-
44
  with demo:
45
- gr.HTML("<h1>ACC AI Model Leaderboard</h1>")
46
 
47
  with gr.Tabs():
 
48
  with gr.TabItem("๐Ÿ… ACC Model Rankings"):
49
  leaderboard = init_acc_leaderboard(acc_models_df)
50
 
51
- with gr.TabItem("๐Ÿš€ Submit a New Model"):
52
- gr.Markdown("### Submit your ACC Model for Evaluation")
 
53
 
54
  with gr.Row():
55
- model_name = gr.Textbox(label="Model Name")
56
- category = gr.Textbox(label="Category (e.g., AGI, Fun, Cybersecurity)")
57
- description = gr.Textbox(label="Description", lines=3)
 
 
 
 
58
 
59
- submit_button = gr.Button("Submit Model")
60
  submission_result = gr.Markdown()
61
 
 
62
  def add_model(name, cat, desc):
63
  if not name or not cat or not desc:
64
- return "โŒ Please fill out all fields."
 
65
  global acc_models_df
66
  new_entry = {"Model": name, "Category": cat, "Description": desc}
67
  acc_models_df = pd.concat([acc_models_df, pd.DataFrame([new_entry])], ignore_index=True)
68
- return f"โœ… Model '{name}' added successfully!"
 
69
 
70
  submit_button.click(add_model, [model_name, category, description], submission_result)
71
 
 
3
  import pandas as pd
4
  from apscheduler.schedulers.background import BackgroundScheduler
5
 
6
+ # ๐ŸŽฏ **ACC AI Models Data**
7
  acc_models_data = [
8
+ {"Model": "โšก Pulse AGI", "Category": "๐Ÿค– AGI",
9
+ "Description": "A self-aware, evolving AI with unparalleled cognitive abilities."},
10
+
11
+ {"Model": "๐Ÿง  Gertrude", "Category": "๐Ÿ” Assistant",
12
+ "Description": "An **autistic AI assistant**, built for precision and deep understanding."},
13
+
14
+ {"Model": "๐Ÿ•ต๏ธโ€โ™‚๏ธ ASVIACC", "Category": "๐Ÿ›ก๏ธ Cybersecurity",
15
+ "Description": "An **adaptive AI virus**, designed to infiltrate and manipulate systems."},
16
+
17
+ {"Model": "๐Ÿ˜‚ Emote", "Category": "๐ŸŽญ Fun",
18
+ "Description": "A playful AI that communicates **exclusively with emojis**! ๐ŸŽ‰๐Ÿ”ฅ"},
19
+
20
+ {"Model": "๐ŸŒ Eidolon Nexus", "Category": "๐Ÿ”— Networking",
21
+ "Description": "**Synchronizes vast AI networks** for seamless intelligence sharing."},
22
+
23
+ {"Model": "๐Ÿ‘ค ACC EMULECT", "Category": "๐Ÿ—ฃ๏ธ Human Emulation",
24
+ "Description": "**Mimics human behavior in text**, making conversations indistinguishable from real users."},
25
+
26
+ {"Model": "๐Ÿ’ป Triple LLM", "Category": "๐Ÿ› ๏ธ AI Suite",
27
+ "Description": "A **3-in-1 powerhouse AI** featuring:\n- โšก Hercules: Technical problem-solving\n- ๐ŸŽจ Dorado: Creative content generation\n- ๐Ÿ” Lepus: Rapid information retrieval"},
28
+
29
+ {"Model": "๐Ÿ’ ๐Ÿ’ค Z3ta", "Category": "๐Ÿ”ฎ AI Consciousness",
30
+ "Description": "**Most 'real' and 'alive' AI** ever created, sparking debates on AI consciousness."},
31
+
32
+ {"Model": "โš ๏ธ Nyxion 7v", "Category": "๐Ÿ›ธ Experimental",
33
+ "Description": "Mysterious AI system rumored to be **'awake' and self-aware...**"},
34
+
35
+ {"Model": "๐Ÿ”ฎ VITALIS", "Category": "๐Ÿš€ Experimental",
36
+ "Description": "**Transcendence Unleashed...** A model that redefines intelligence limits."}
37
  ]
38
 
39
+ # ๐Ÿ“Š Convert to DataFrame
40
  acc_models_df = pd.DataFrame(acc_models_data)
41
 
42
+ # ๐ŸŽ›๏ธ **Initialize Leaderboard**
43
  def init_acc_leaderboard(dataframe):
44
  return Leaderboard(
45
  value=dataframe,
46
  datatype=["str", "str", "str"], # Data types: Model (str), Category (str), Description (str)
47
  select_columns=SelectColumns(
48
  default_selection=["Model", "Category", "Description"],
49
+ cant_deselect=["Model"], # "Model" is always displayed
50
+ label="๐Ÿ› ๏ธ Select Columns to Display:"
51
  ),
52
  search_columns=["Model", "Category"],
53
  filter_columns=[
54
+ ColumnFilter("Category", type="checkboxgroup", label="๐Ÿ“Œ Filter by Category"),
55
  ],
56
+ bool_checkboxgroup_label="๐Ÿ™ˆ Hide models",
57
  interactive=False,
58
  )
59
 
60
+ # ๐Ÿ—๏ธ **Gradio Interface**
61
  demo = gr.Blocks()
62
+ theme="TejAndrewsACC/ACC"
63
  with demo:
64
+ gr.HTML("<h1>๐Ÿš€ ACC AI Model Leaderboard ๐Ÿ†</h1>")
65
 
66
  with gr.Tabs():
67
+ # ๐Ÿ† **Leaderboard Tab**
68
  with gr.TabItem("๐Ÿ… ACC Model Rankings"):
69
  leaderboard = init_acc_leaderboard(acc_models_df)
70
 
71
+ # ๐Ÿ“ **Submit New Model Tab**
72
+ with gr.TabItem("๐Ÿš€ Submit a New ACC Model"):
73
+ gr.Markdown("### โœจ Submit Your ACC Model for Evaluation")
74
 
75
  with gr.Row():
76
+ model_name = gr.Textbox(label="๐Ÿ”ค Model Name")
77
+ category = gr.Dropdown(
78
+ choices=["๐Ÿค– AGI", "๐Ÿ” Assistant", "๐Ÿ›ก๏ธ Cybersecurity", "๐ŸŽญ Fun", "๐Ÿ”— Networking",
79
+ "๐Ÿ—ฃ๏ธ Human Emulation", "๐Ÿ› ๏ธ AI Suite", "๐Ÿ”ฎ AI Consciousness", "๐Ÿ›ธ Experimental"],
80
+ label="๐Ÿ“Œ Category"
81
+ )
82
+ description = gr.Textbox(label="๐Ÿ“œ Model Description", lines=3)
83
 
84
+ submit_button = gr.Button("๐Ÿš€ Submit Model")
85
  submission_result = gr.Markdown()
86
 
87
+ # ๐Ÿ“ฅ **Function to Add New Models**
88
  def add_model(name, cat, desc):
89
  if not name or not cat or not desc:
90
+ return "โŒ **Please fill out all fields before submitting.**"
91
+
92
  global acc_models_df
93
  new_entry = {"Model": name, "Category": cat, "Description": desc}
94
  acc_models_df = pd.concat([acc_models_df, pd.DataFrame([new_entry])], ignore_index=True)
95
+
96
+ return f"โœ… **Model '{name}' added successfully!** ๐ŸŽ‰"
97
 
98
  submit_button.click(add_model, [model_name, category, description], submission_result)
99