karimouda commited on
Commit
e60f602
·
1 Parent(s): 378e964
app.py CHANGED
@@ -66,11 +66,13 @@ def init_leaderboard(dataframe):
66
 
67
  styler = dataframe.style.format({'Contamination Score': "{:.2f}",'Benchmark Score': "{:.2f}",'Speed (words/sec)': "{:.2f}"}).apply(
68
  lambda rows: [
69
- "background-color: red;color:white !important" if (value >0) else "background-color: green;color:white !important" for value in rows
70
  ],
71
  subset=["Contamination Score"],
 
72
  )
73
 
 
74
 
75
  return gr.Dataframe(
76
  value=styler,
 
66
 
67
  styler = dataframe.style.format({'Contamination Score': "{:.2f}",'Benchmark Score': "{:.2f}",'Speed (words/sec)': "{:.2f}"}).apply(
68
  lambda rows: [
69
+ "background-color: red;" if (value >0) else "background-color: green;" for value in rows
70
  ],
71
  subset=["Contamination Score"],
72
+
73
  )
74
 
75
+
76
 
77
  return gr.Dataframe(
78
  value=styler,
src/about.py CHANGED
@@ -19,7 +19,7 @@ NUM_FEWSHOT = 0 # Change with your few shot
19
 
20
 
21
  # Your leaderboard name
22
- TITLE = """<img src='https://huggingface.co/spaces/silma-ai/Arabic-LLM-Broad-Leaderboard/resolve/main/src/images/abl_logo.png' style='margin:auto;width:50%;display:block'>"""
23
 
24
  # What does your leaderboard evaluate?
25
  INTRODUCTION_TEXT = """
 
19
 
20
 
21
  # Your leaderboard name
22
+ TITLE = """<div class='abl_header_image'><img src='https://huggingface.co/spaces/silma-ai/Arabic-LLM-Broad-Leaderboard/resolve/main/src/images/abl_logo.png' ></div>"""
23
 
24
  # What does your leaderboard evaluate?
25
  INTRODUCTION_TEXT = """
src/display/css_html_js.py CHANGED
@@ -102,13 +102,20 @@ custom_css = """
102
  font-size:14px !important
103
  }
104
 
105
- .contaminated{
106
- background-color:red !important;
 
107
  }
108
- .clean{
109
- background-color:green !important;
 
 
 
 
110
  }
111
 
 
 
112
  """
113
 
114
  get_window_url_params = """
 
102
  font-size:14px !important
103
  }
104
 
105
+ .leaderboard_col_style td:nth-child(7) p{
106
+ color: white !important;
107
+
108
  }
109
+
110
+ .abl_header_image{
111
+ margin:0px auto 0px auto;
112
+ width:50%;
113
+ display:block;
114
+ transition:all 10s ease-in-out;
115
  }
116
 
117
+
118
+
119
  """
120
 
121
  get_window_url_params = """
src/leaderboard/read_evals.py CHANGED
@@ -139,6 +139,7 @@ class EvalResult:
139
  dimension_value = self.results[eval_dim.value.metric]
140
  if dimension_name == "Contamination Score":
141
  dimension_value = 0 if dimension_value < 0 else round(dimension_value,2)
 
142
  data_dict[dimension_name] = dimension_value
143
 
144
  return data_dict
 
139
  dimension_value = self.results[eval_dim.value.metric]
140
  if dimension_name == "Contamination Score":
141
  dimension_value = 0 if dimension_value < 0 else round(dimension_value,2)
142
+
143
  data_dict[dimension_name] = dimension_value
144
 
145
  return data_dict