Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
#
|
7 |
acc_models_data = [
|
8 |
-
{"Model": "Pulse AGI", "Category": "AGI",
|
9 |
-
|
10 |
-
|
11 |
-
{"Model": "
|
12 |
-
|
13 |
-
|
14 |
-
{"Model": "
|
15 |
-
|
16 |
-
|
17 |
-
{"Model": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"], #
|
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
|
46 |
|
47 |
with gr.Tabs():
|
|
|
48 |
with gr.TabItem("๐
ACC Model Rankings"):
|
49 |
leaderboard = init_acc_leaderboard(acc_models_df)
|
50 |
|
51 |
-
|
52 |
-
|
|
|
53 |
|
54 |
with gr.Row():
|
55 |
-
model_name = gr.Textbox(label="Model Name")
|
56 |
-
category = gr.
|
57 |
-
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
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 |
|