Spaces:
Running
Running
Update app.py
Browse filesadding leaderboard models
app.py
CHANGED
@@ -96,6 +96,15 @@ def print_existing_models():
|
|
96 |
model_list= requests_dset[requests_dset['status'] == 'COMPLETED']
|
97 |
return model_list
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
with gr.Blocks() as demo:
|
101 |
gr.Markdown("# Energy Star Submission Portal - v.0 (2024) π π» π")
|
@@ -127,6 +136,8 @@ with gr.Blocks() as demo:
|
|
127 |
outputs=submission_result,
|
128 |
)
|
129 |
with gr.Row():
|
130 |
-
with gr.Accordion("Models that
|
|
|
|
|
131 |
gr.Dataframe(print_existing_models())
|
132 |
demo.launch()
|
|
|
96 |
model_list= requests_dset[requests_dset['status'] == 'COMPLETED']
|
97 |
return model_list
|
98 |
|
99 |
+
def get_leaderboard_models():
|
100 |
+
path = r'leaderboard_v0_data/energy'
|
101 |
+
filenames = glob.glob(path + "/*.csv")
|
102 |
+
data = []
|
103 |
+
for filename in filenames:
|
104 |
+
dfs.append(pd.read_csv(filename))
|
105 |
+
leaderboard_data = pd.concat(dfs, ignore_index=True)
|
106 |
+
return leaderboard_data
|
107 |
+
|
108 |
|
109 |
with gr.Blocks() as demo:
|
110 |
gr.Markdown("# Energy Star Submission Portal - v.0 (2024) π π» π")
|
|
|
136 |
outputs=submission_result,
|
137 |
)
|
138 |
with gr.Row():
|
139 |
+
with gr.Accordion("Models that are in the latest leaderboard version:"):
|
140 |
+
gr.Dataframe(get_leaderboard_models())
|
141 |
+
with gr.Accordion("Models that have been benchmarked lately:"):
|
142 |
gr.Dataframe(print_existing_models())
|
143 |
demo.launch()
|