CultriX commited on
Commit
99af63c
·
verified ·
1 Parent(s): 70d3b96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,8 +81,8 @@ def get_model_info(df):
81
 
82
  return df
83
 
84
-
85
  def calculate_highest_combined_score(data, column):
 
86
  # Ensure the column exists and has numeric data
87
  if column not in data.columns or not pd.api.types.is_numeric_dtype(data[column]):
88
  return column, {}
@@ -100,7 +100,7 @@ def calculate_highest_combined_score(data, column):
100
  # Function to display the results of the highest combined scores
101
  def display_highest_combined_scores(data):
102
  with st.spinner('Calculating highest combined scores...'):
103
- results = [calculate_highest_combined_score(data, col) for col in columns]
104
  for column, top_combinations in results:
105
  st.subheader(f"Top Combinations for {column}")
106
  for r, combinations in top_combinations.items():
 
81
 
82
  return df
83
 
 
84
  def calculate_highest_combined_score(data, column):
85
+ score_columns = ['Average', 'AGIEval', 'GPT4All', 'TruthfulQA', 'Bigbench']
86
  # Ensure the column exists and has numeric data
87
  if column not in data.columns or not pd.api.types.is_numeric_dtype(data[column]):
88
  return column, {}
 
100
  # Function to display the results of the highest combined scores
101
  def display_highest_combined_scores(data):
102
  with st.spinner('Calculating highest combined scores...'):
103
+ results = [calculate_highest_combined_score(data, col) for col in score_columns]
104
  for column, top_combinations in results:
105
  st.subheader(f"Top Combinations for {column}")
106
  for r, combinations in top_combinations.items():