zhuohan-7 commited on
Commit
a12f124
1 Parent(s): c9c4929

Upload folder using huggingface_hub

Browse files
app/__pycache__/draw_diagram.cpython-310.pyc CHANGED
Binary files a/app/__pycache__/draw_diagram.cpython-310.pyc and b/app/__pycache__/draw_diagram.cpython-310.pyc differ
 
app/__pycache__/pages.cpython-310.pyc CHANGED
Binary files a/app/__pycache__/pages.cpython-310.pyc and b/app/__pycache__/pages.cpython-310.pyc differ
 
app/draw_diagram.py CHANGED
@@ -125,13 +125,19 @@ def draw(folder_name, category_one, category_two, sort, num_sort):
125
 
126
  chart_data['model_link'] = chart_data['model_show'].map(model_link)
127
 
128
- # import pdb
129
- # pdb.set_trace()
130
-
131
  chart_data_table = chart_data[['model_show', 'model_link'] + data_columns]
132
 
 
 
 
 
 
 
 
 
 
133
  st.dataframe(
134
- chart_data_table,
135
  column_config={
136
  'model_show': 'Model',
137
  chart_data_table.columns[1]: {'alignment': 'center'},
 
125
 
126
  chart_data['model_link'] = chart_data['model_show'].map(model_link)
127
 
 
 
 
128
  chart_data_table = chart_data[['model_show', 'model_link'] + data_columns]
129
 
130
+ chart_data_table = chart_data_table.sort_values(
131
+ by=chart_data_table.columns[2],
132
+ ascending=False
133
+ ).reset_index(drop=True)
134
+
135
+ styled_df = chart_data_table.style.highlight_max(
136
+ subset=[chart_data_table.columns[2]], color='yellow'
137
+ )
138
+
139
  st.dataframe(
140
+ styled_df,
141
  column_config={
142
  'model_show': 'Model',
143
  chart_data_table.columns[1]: {'alignment': 'center'},
app/pages.py CHANGED
@@ -96,7 +96,7 @@ def cross_lingual_consistency():
96
  category_one = category_one_dict[category_one]
97
  category_two = category_two_dict[category_two]
98
 
99
- draw('cross_lingual',category_one, category_two, sort, sortby)
100
  # else:
101
  # draw('zero_shot', 'cross_mmlu', 'Accuracy', 'Descending')
102
 
 
96
  category_one = category_one_dict[category_one]
97
  category_two = category_two_dict[category_two]
98
 
99
+ draw('cross_lingual', category_one, category_two, sort, sortby)
100
  # else:
101
  # draw('zero_shot', 'cross_mmlu', 'Accuracy', 'Descending')
102