Spaces:
Running
Running
Update app.py
Browse filesok, putting it back
app.py
CHANGED
@@ -50,9 +50,9 @@ def add_new_eval(
|
|
50 |
model_name = repo_id.split("/")[1]
|
51 |
model_list=[]
|
52 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
if repo_id in model_list:
|
57 |
return 'This model has already been run!'
|
58 |
else:
|
@@ -139,6 +139,6 @@ with gr.Blocks() as demo:
|
|
139 |
with gr.Column():
|
140 |
with gr.Accordion("Models that are in the latest leaderboard version:", open = False):
|
141 |
gr.Dataframe(get_leaderboard_models())
|
142 |
-
|
143 |
-
|
144 |
demo.launch()
|
|
|
50 |
model_name = repo_id.split("/")[1]
|
51 |
model_list=[]
|
52 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
53 |
+
requests= load_dataset("EnergyStarAI/requests_debug", split="test", token=TOKEN)
|
54 |
+
requests_dset = requests.to_pandas()
|
55 |
+
model_list= requests_dset[requests_dset['status'] == 'COMPLETED']['model'].tolist()
|
56 |
if repo_id in model_list:
|
57 |
return 'This model has already been run!'
|
58 |
else:
|
|
|
139 |
with gr.Column():
|
140 |
with gr.Accordion("Models that are in the latest leaderboard version:", open = False):
|
141 |
gr.Dataframe(get_leaderboard_models())
|
142 |
+
with gr.Accordion("Models that have been benchmarked lately:", open = False):
|
143 |
+
gr.Dataframe(print_existing_models())
|
144 |
demo.launch()
|