Amit Kumar
commited on
Commit
·
d6b40ba
1
Parent(s):
dac144a
corrected filter and added submit prompt google form
Browse files- app.py +11 -4
- leaderboard_files/leaderboard_data.csv +1 -1
app.py
CHANGED
|
@@ -46,7 +46,11 @@ def filter_leaderboard(selected_params, selected_shots, selected_data):
|
|
| 46 |
|
| 47 |
columns_by_shot = get_columns_for_shots(selected_shots)
|
| 48 |
columns_by_data = get_columns_for_data(selected_data)
|
| 49 |
-
additional_columns = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
cols_to_show = list(dict.fromkeys(columns_fixed + additional_columns))
|
| 51 |
|
| 52 |
print("COLUMNS TO SHOW:", cols_to_show)
|
|
@@ -73,9 +77,12 @@ with gr.Blocks(css = custom_css) as demo:
|
|
| 73 |
shot_filter.change(fn=filter_leaderboard, inputs=[param_filter, shot_filter, column_selector_data], outputs=leaderboard_table)
|
| 74 |
|
| 75 |
with gr.Tab("🚀 Submit Prompt or model here! ", elem_classes="custom-tab-buttons"):
|
| 76 |
-
gr.Markdown(""
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
| 79 |
""")
|
| 80 |
# Add your prompt submission code here
|
| 81 |
demo.launch()
|
|
|
|
| 46 |
|
| 47 |
columns_by_shot = get_columns_for_shots(selected_shots)
|
| 48 |
columns_by_data = get_columns_for_data(selected_data)
|
| 49 |
+
additional_columns = []
|
| 50 |
+
for col in all_columns:
|
| 51 |
+
if any(shot in col for shot in selected_shots) and any(data in col for data in selected_data):
|
| 52 |
+
additional_columns.append(col)
|
| 53 |
+
print("additional_columns:", additional_columns)
|
| 54 |
cols_to_show = list(dict.fromkeys(columns_fixed + additional_columns))
|
| 55 |
|
| 56 |
print("COLUMNS TO SHOW:", cols_to_show)
|
|
|
|
| 77 |
shot_filter.change(fn=filter_leaderboard, inputs=[param_filter, shot_filter, column_selector_data], outputs=leaderboard_table)
|
| 78 |
|
| 79 |
with gr.Tab("🚀 Submit Prompt or model here! ", elem_classes="custom-tab-buttons"):
|
| 80 |
+
gr.Markdown("### Submit Your Model or Prompt")
|
| 81 |
+
gr.HTML("""
|
| 82 |
+
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeiAyvWT9uw7__vRII1LGiyBojcFNCMmREdVGlCC8mu_ENWKQ/viewform?usp=dialog?embedded=true"
|
| 83 |
+
width="100%" height="1000" frameborder="0" marginheight="0" marginwidth="0">
|
| 84 |
+
Loading…
|
| 85 |
+
</iframe>
|
| 86 |
""")
|
| 87 |
# Add your prompt submission code here
|
| 88 |
demo.launch()
|
leaderboard_files/leaderboard_data.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
Model Name,Parameters,Average Label,Average Record,CT Rate 0
|
| 2 |
LLama 3.1,8B,0.8744,0.2386,0.9534,0.4965,0.9376,0.363,,,0.7857,0.0749,0.8365,0.0963,0.8586,0.1622
|
| 3 |
Deepseek llama 3.1,8B,0.7841,0.1817,0.9391,0.4722,0.8983,0.2377,,,0.5286,0.04,0.7684,0.0699,0.7861,0.0889
|
| 4 |
Qwen 2.5,7B,0.7514,0.2376,0.9486,0.4797,0.9523,0.4774,,,0.2125,0.0,0.8085,0.1195,0.8349,0.1113
|
|
|
|
| 1 |
+
Model Name,Parameters,Average Label,Average Record,CT Rate 0 shot Label,CT Rate 0 shot Record,CT Rate 1 shot Label,CT Rate 1 shot Record,CT Rate 5 Shots Label,CT Rate 5 Shots Record,Chexpert Plus 0 shot Label,Chexpert Plus 0 shot Record,Chexpert Plus 1 shot Label,Chexpert Plus 1 shot Record,Chexpert Plus 5 Shots Label,Chexpert Plus 5 Shots Record
|
| 2 |
LLama 3.1,8B,0.8744,0.2386,0.9534,0.4965,0.9376,0.363,,,0.7857,0.0749,0.8365,0.0963,0.8586,0.1622
|
| 3 |
Deepseek llama 3.1,8B,0.7841,0.1817,0.9391,0.4722,0.8983,0.2377,,,0.5286,0.04,0.7684,0.0699,0.7861,0.0889
|
| 4 |
Qwen 2.5,7B,0.7514,0.2376,0.9486,0.4797,0.9523,0.4774,,,0.2125,0.0,0.8085,0.1195,0.8349,0.1113
|