michal commited on
Commit
1a497e8
Β·
1 Parent(s): 2a298cc
Files changed (3) hide show
  1. app.py +1 -1
  2. src/abouts.py +1 -1
  3. src/structures/all_structure.py +1 -0
app.py CHANGED
@@ -48,7 +48,7 @@ with main:
48
  with gr.Column():
49
  gr.HTML(HEADER_TITLE)
50
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
51
- with gr.TabItem("πŸ₯‡ Medical leaderboard"):
52
  gr.Markdown(LEADERBOARD_DESC)
53
  data_component = gr.components.Dataframe(
54
  value=STYLED,
 
48
  with gr.Column():
49
  gr.HTML(HEADER_TITLE)
50
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
51
+ with gr.TabItem("πŸ₯‡ Polish Medical Exams"):
52
  gr.Markdown(LEADERBOARD_DESC)
53
  data_component = gr.components.Dataframe(
54
  value=STYLED,
src/abouts.py CHANGED
@@ -2,7 +2,7 @@ HEADER_TITLE = """
2
  <div style="display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;">
3
  <div>
4
  <h1 align="center" id="space-title">Adam Mickiewicz University's Center for Artificial Intelligence</h1>
5
- <h2 align="center" id="space-subtitle">LLMs medical benchmark</h2>
6
  </div>
7
  </div>
8
  """
 
2
  <div style="display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;">
3
  <div>
4
  <h1 align="center" id="space-title">Adam Mickiewicz University's Center for Artificial Intelligence</h1>
5
+ <h2 align="center" id="space-subtitle">Polish Medical Exams</h2>
6
  </div>
7
  </div>
8
  """
src/structures/all_structure.py CHANGED
@@ -59,6 +59,7 @@ ALL_ACCS['Average'] = ALL_ACCS[['PES', 'LDEK', 'LEK']].mean(axis=1).round(2)
59
  columns = list(ALL_ACCS.columns)
60
  columns.insert(1, columns.pop(columns.index('Average')))
61
  ALL_ACCS = ALL_ACCS[columns]
 
62
  STYLED = ALL_ACCS.style.highlight_max(
63
  color = highlight_color,
64
  subset=ALL_ACCS.columns[-4:]).format(precision=2)
 
59
  columns = list(ALL_ACCS.columns)
60
  columns.insert(1, columns.pop(columns.index('Average')))
61
  ALL_ACCS = ALL_ACCS[columns]
62
+ ALL_ACCS = ALL_ACCS.sort_values(by="Average", ascending=False)
63
  STYLED = ALL_ACCS.style.highlight_max(
64
  color = highlight_color,
65
  subset=ALL_ACCS.columns[-4:]).format(precision=2)