app.py
CHANGED
@@ -24,18 +24,23 @@ api = HfApi(token=HF_TOKEN)
|
|
24 |
hivex_envs = [
|
25 |
{
|
26 |
"hivex_env": "hivex-wind-farm-control",
|
|
|
27 |
},
|
28 |
{
|
29 |
"hivex_env": "hivex-wildfire-resource-management",
|
|
|
30 |
},
|
31 |
{
|
32 |
"hivex_env": "hivex-drone-based-reforestation",
|
|
|
33 |
},
|
34 |
{
|
35 |
"hivex_env": "hivex-ocean-plastic-collection",
|
|
|
36 |
},
|
37 |
{
|
38 |
"hivex_env": "hivex-aerial-wildfire-suppression",
|
|
|
39 |
},
|
40 |
]
|
41 |
|
@@ -196,18 +201,32 @@ main_block = gr.Blocks()
|
|
196 |
with main_block:
|
197 |
with gr.Row(elem_id="header-row"):
|
198 |
# TITLE + "<p>Total models: " + str(len(HARD_LEADERBOARD_DF))+ "</p>"
|
199 |
-
gr.HTML("<h1>Leaderboard</h1>")
|
200 |
|
201 |
# gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
202 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
hivex_envs = [
|
25 |
{
|
26 |
"hivex_env": "hivex-wind-farm-control",
|
27 |
+
"task_count": 2,
|
28 |
},
|
29 |
{
|
30 |
"hivex_env": "hivex-wildfire-resource-management",
|
31 |
+
"task_count": 3,
|
32 |
},
|
33 |
{
|
34 |
"hivex_env": "hivex-drone-based-reforestation",
|
35 |
+
"task_count": 7,
|
36 |
},
|
37 |
{
|
38 |
"hivex_env": "hivex-ocean-plastic-collection",
|
39 |
+
"task_count": 4,
|
40 |
},
|
41 |
{
|
42 |
"hivex_env": "hivex-aerial-wildfire-suppression",
|
43 |
+
"task_count": 9,
|
44 |
},
|
45 |
]
|
46 |
|
|
|
201 |
with main_block:
|
202 |
with gr.Row(elem_id="header-row"):
|
203 |
# TITLE + "<p>Total models: " + str(len(HARD_LEADERBOARD_DF))+ "</p>"
|
204 |
+
gr.HTML("<h1>HIVEX-Leaderboard</h1>")
|
205 |
|
206 |
# gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
207 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
208 |
+
for i in range(0, len(hivex_envs)):
|
209 |
+
hivex_env = hivex_envs[i]
|
210 |
+
with gr.Tab(hivex_env["hivex_env"]) as tab:
|
211 |
+
for j in range(0, hivex_env["task_count"]):
|
212 |
+
task = "Task " + str(j + 1)
|
213 |
+
with gr.TabItem(task):
|
214 |
+
gr.DataTable(
|
215 |
+
get_data(
|
216 |
+
hivex_env["hivex_env"],
|
217 |
+
"datasets/hivex-leaderboard-data",
|
218 |
+
),
|
219 |
+
elem_id=hivex_env["hivex_env"] + "_" + task,
|
220 |
+
elem_classes="table",
|
221 |
+
)
|
222 |
+
# with gr.Tab("π Hard Set") as hard_tabs:
|
223 |
+
# with gr.TabItem(
|
224 |
+
# "π
Benchmark", elem_id="llm-benchmark-tab-table", id="hard_bench"
|
225 |
+
# ):
|
226 |
+
# gr.DataTable(
|
227 |
+
# get_data(
|
228 |
+
# "hivex-wind-farm-control", "datasets/hivex-leaderboard-data"
|
229 |
+
# ),
|
230 |
+
# elem_id="hard_benchmark_table",
|
231 |
+
# elem_classes="table",
|
232 |
+
# )
|