CultriX commited on
Commit
c89af95
1 Parent(s): 2f1c9f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,8 +88,8 @@ def calculate_highest_combined_score(data, column):
88
  return column, {}
89
  scores = data[column].dropna().tolist()
90
  models = data['Model'].tolist()
91
- top_combinations = {r: [] for r in range(2, 6)}
92
- for r in range(2, 6):
93
  for combination in combinations(zip(scores, models), r):
94
  combined_score = sum(score for score, _ in combination)
95
  top_combinations[r].append((combined_score, tuple(model for _, model in combination)))
@@ -245,7 +245,7 @@ def main():
245
  with col4:
246
  create_bar_chart(df, score_columns[4])
247
 
248
- display_highest_combined_scores(full_df) # Call to display the calculated scores
249
  except Exception as e:
250
  st.error("An error occurred while processing the markdown table.")
251
  st.error(str(e))
 
88
  return column, {}
89
  scores = data[column].dropna().tolist()
90
  models = data['Model'].tolist()
91
+ top_combinations = {r: [] for r in range(2, 5)}
92
+ for r in range(2, 5):
93
  for combination in combinations(zip(scores, models), r):
94
  combined_score = sum(score for score, _ in combination)
95
  top_combinations[r].append((combined_score, tuple(model for _, model in combination)))
 
245
  with col4:
246
  create_bar_chart(df, score_columns[4])
247
 
248
+ display_highest_combined_scores(full_df, score_columns[0]) # Call to display the calculated scores
249
  except Exception as e:
250
  st.error("An error occurred while processing the markdown table.")
251
  st.error(str(e))