Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ acc_models_data = [
|
|
41 |
{"Model": "π¦ VBL", "Category": "Laser", "Description": "A non-burning green handheld laser.", "Score": 80},
|
42 |
{"Model": "β’οΈ H.I.P.E", "Category": "Laser", "Description": "A world-destroying laser concept.", "Score": 99},
|
43 |
{"Model": "π¬ I.P.E", "Category": "Laser", "Description": "Core framework for all ACC laser models.", "Score": 83},
|
44 |
-
{"Model": "π Blaseron Calculator", "
|
45 |
]
|
46 |
|
47 |
# π Convert to DataFrame
|
@@ -68,12 +68,36 @@ def generate_score_chart_ai(dataframe):
|
|
68 |
dataframe[dataframe["Category"] != "AGI"].sort_values(by="Score", ascending=True),
|
69 |
x="Score", y="Model", orientation="h",
|
70 |
color="Score", text="Score",
|
71 |
-
title="π₯ AI Model Performance",
|
72 |
color_continuous_scale="electric"
|
73 |
)
|
74 |
fig.update_traces(textposition="outside")
|
75 |
return fig
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
# π **Animated Score Visualization for Laser Models**
|
78 |
def generate_score_chart_laser(dataframe):
|
79 |
fig = px.bar(
|
@@ -174,6 +198,8 @@ with demo:
|
|
174 |
leaderboard = init_acc_leaderboard(acc_models_df)
|
175 |
leaderboard_display = gr.Dataframe(value=acc_models_df, interactive=False, label="π₯ Live Scores")
|
176 |
score_chart_ai = gr.Plot(generate_score_chart_ai(acc_models_df))
|
|
|
|
|
177 |
score_chart_laser = gr.Plot(generate_score_chart_laser(acc_models_df))
|
178 |
gr.HTML("<h3>π¨ AI Models</h3>")
|
179 |
gr.HTML("<h3>β‘ Laser Models</h3>")
|
|
|
41 |
{"Model": "π¦ VBL", "Category": "Laser", "Description": "A non-burning green handheld laser.", "Score": 80},
|
42 |
{"Model": "β’οΈ H.I.P.E", "Category": "Laser", "Description": "A world-destroying laser concept.", "Score": 99},
|
43 |
{"Model": "π¬ I.P.E", "Category": "Laser", "Description": "Core framework for all ACC laser models.", "Score": 83},
|
44 |
+
{"Model": "π Blaseron Calculator", "Category": "Experimental", "Description": "Calculates laser burn strength.", "Score": 77},
|
45 |
]
|
46 |
|
47 |
# π Convert to DataFrame
|
|
|
68 |
dataframe[dataframe["Category"] != "AGI"].sort_values(by="Score", ascending=True),
|
69 |
x="Score", y="Model", orientation="h",
|
70 |
color="Score", text="Score",
|
71 |
+
title="π₯ AI Model Performance(AGI)",
|
72 |
color_continuous_scale="electric"
|
73 |
)
|
74 |
fig.update_traces(textposition="outside")
|
75 |
return fig
|
76 |
|
77 |
+
# π **Animated Score Visualization for AI**
|
78 |
+
def generate_score_chart_assistant_ai(dataframe):
|
79 |
+
fig = px.bar(
|
80 |
+
dataframe[dataframe["Category"] != "Assistant"].sort_values(by="Score", ascending=True),
|
81 |
+
x="Score", y="Model", orientation="h",
|
82 |
+
color="Score", text="Score",
|
83 |
+
title="π₯ AI Model Performance(Assistant)",
|
84 |
+
color_continuous_scale="electric"
|
85 |
+
)
|
86 |
+
fig.update_traces(textposition="outside")
|
87 |
+
return fig
|
88 |
+
|
89 |
+
# π **Animated Score Visualization for AI**
|
90 |
+
def generate_score_chart_fun_ai(dataframe):
|
91 |
+
fig = px.bar(
|
92 |
+
dataframe[dataframe["Category"] != "Fun"].sort_values(by="Score", ascending=True),
|
93 |
+
x="Score", y="Model", orientation="h",
|
94 |
+
color="Score", text="Score",
|
95 |
+
title="π₯ AI Model Performance(Fun)",
|
96 |
+
color_continuous_scale="electric"
|
97 |
+
)
|
98 |
+
fig.update_traces(textposition="outside")
|
99 |
+
return fig
|
100 |
+
|
101 |
# π **Animated Score Visualization for Laser Models**
|
102 |
def generate_score_chart_laser(dataframe):
|
103 |
fig = px.bar(
|
|
|
198 |
leaderboard = init_acc_leaderboard(acc_models_df)
|
199 |
leaderboard_display = gr.Dataframe(value=acc_models_df, interactive=False, label="π₯ Live Scores")
|
200 |
score_chart_ai = gr.Plot(generate_score_chart_ai(acc_models_df))
|
201 |
+
score_chart_assistant_ai = gr.Plot(generate_score_chart_ai(acc_models_df))
|
202 |
+
score_chart_fun_ai = gr.Plot(generate_score_chart_ai(acc_models_df))
|
203 |
score_chart_laser = gr.Plot(generate_score_chart_laser(acc_models_df))
|
204 |
gr.HTML("<h3>π¨ AI Models</h3>")
|
205 |
gr.HTML("<h3>β‘ Laser Models</h3>")
|